當前位置: 首頁>>代碼示例>>Java>>正文


Java Utils.joinOptions方法代碼示例

本文整理匯總了Java中weka.core.Utils.joinOptions方法的典型用法代碼示例。如果您正苦於以下問題:Java Utils.joinOptions方法的具體用法?Java Utils.joinOptions怎麽用?Java Utils.joinOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在weka.core.Utils的用法示例。


在下文中一共展示了Utils.joinOptions方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getFilterSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * returns the filter classname and the options as one string
 * 
 * @param filter the filter to get the specs for
 * @return the classname plus options
 */
protected String getFilterSpec(Filter filter) {
  String result;

  if (filter == null) {
    result = "";
  } else {
    result = filter.getClass().getName();
    if (filter instanceof OptionHandler) {
      result += " "
        + Utils.joinOptions(((OptionHandler) filter).getOptions());
    }
  }

  return result;
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:22,代碼來源:MultiFilter.java

示例2: updateOptions

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Updates the options that the current classifier is using.
 */
protected void updateOptions() {

  if (m_Template instanceof OptionHandler) {
    m_ClassifierOptions = Utils.joinOptions(((OptionHandler) m_Template)
      .getOptions());
  } else {
    m_ClassifierOptions = "";
  }
  if (m_Template instanceof Serializable) {
    ObjectStreamClass obs = ObjectStreamClass.lookup(m_Template.getClass());
    m_ClassifierVersion = "" + obs.getSerialVersionUID();
  } else {
    m_ClassifierVersion = "";
  }
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:19,代碼來源:RegressionSplitEvaluator.java

示例3: getClustererSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Gets the clusterer specification string, which contains the class name of
 * the clusterer and any options to the clusterer.
 * 
 * @return the clusterer string.
 */
protected String getClustererSpec() {
  Clusterer c = getClusterer();
  if (c instanceof OptionHandler) {
    return c.getClass().getName() + " "
      + Utils.joinOptions(((OptionHandler) c).getOptions());
  }
  return c.getClass().getName();
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:15,代碼來源:AddCluster.java

示例4: getFilterSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Gets the filter specification string, which contains the class name of the
 * filter and any options to the filter
 *
 * @return the filter string.
 */
protected String getFilterSpec() {

  Filter c = getFilter();
  if (c instanceof OptionHandler) {
    return c.getClass().getName() + " "
      + Utils.joinOptions(((OptionHandler) c).getOptions());
  }
  return c.getClass().getName();
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:16,代碼來源:FilteredClassifier.java

示例5: applyOptionsToJob

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Apply the complete list of options to the current underlying job
 * 
 * @param opts the options to apply
 */
protected void applyOptionsToJob(List<String> opts) {
  String combined = Utils.joinOptions(opts.toArray(new String[opts.size()]));
  System.err.println("Combined: " + combined);

  if (!combined.equals(m_optionsOrig)) {
    m_modifyListener.setModifiedStatus(this, true);
  }

  m_bean.setJobOptions(combined);

  m_parentWindow.dispose();
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:18,代碼來源:HadoopJobCustomizer.java

示例6: getClassifierSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Gets the classifier specification string, which contains the class name of
 * the classifier and any options to the classifier.
 * 
 * @return the classifier string.
 */
protected String getClassifierSpec() {

  Classifier c = getClassifier();
  if (c instanceof OptionHandler) {
    return c.getClass().getName() + " "
      + Utils.joinOptions(((OptionHandler) c).getOptions());
  }
  return c.getClass().getName();
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:16,代碼來源:RemoveMisclassified.java

示例7: statusMessagePrefix

import weka.core.Utils; //導入方法依賴的package包/類
private String statusMessagePrefix() {
  return getCustomName()
    + "$"
    + hashCode()
    + "|"
    + ((m_Associator instanceof OptionHandler && Utils.joinOptions(
      ((OptionHandler) m_Associator).getOptions()).length() > 0) ? Utils
      .joinOptions(((OptionHandler) m_Associator).getOptions()) + "|" : "");
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:10,代碼來源:Associator.java

示例8: getSearchSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
  * Gets the search specification string, which contains the class name of
  * the search method and any options to it
  *
  * @return the search string.
  */
 protected String getSearchSpec() {
   
   ASSearch s = getSearch();
   if (s instanceof OptionHandler) {
     return s.getClass().getName() + " "
+ Utils.joinOptions(((OptionHandler)s).getOptions());
   }
   return s.getClass().getName();
 }
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:16,代碼來源:AttributeSelectedClassifier.java

示例9: statusMessagePrefix

import weka.core.Utils; //導入方法依賴的package包/類
private String statusMessagePrefix() {
  return getCustomName()
    + "$"
    + hashCode()
    + "|"
    + ((m_Loader instanceof OptionHandler) ? Utils
      .joinOptions(((OptionHandler) m_Loader).getOptions()) + "|" : "");
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:9,代碼來源:Loader.java

示例10: toString

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Returns description of the bias-variance decomposition results.
 *
 * @return the bias-variance decomposition results as a string
 */
public String toString() {

  String result = "\nBias-Variance Decomposition\n";

  if (getClassifier() == null) {
    return "Invalid setup";
  }

  result += "\nClassifier   : " + getClassifier().getClass().getName();
  if (getClassifier() instanceof OptionHandler) {
    result += Utils.joinOptions(((OptionHandler)m_Classifier).getOptions());
  }
  result += "\nData File    : " + getDataFileName();
  result += "\nClass Index  : ";
  if (getClassIndex() == 0) {
    result += "last";
  } else {
    result += getClassIndex();
  }
  result += "\nTraining Pool: " + getTrainPoolSize();
  result += "\nIterations   : " + getTrainIterations();
  result += "\nSeed         : " + getSeed();
  result += "\nError        : " + Utils.doubleToString(getError(), 6, 4);
  result += "\nSigma^2      : " + Utils.doubleToString(getSigma(), 6, 4);
  result += "\nBias^2       : " + Utils.doubleToString(getBias(), 6, 4);
  result += "\nVariance     : " + Utils.doubleToString(getVariance(), 6, 4);

  return result + "\n";
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:35,代碼來源:BVDecompose.java

示例11: graph

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Returns graph describing the classifier (if possible).
 *
 * @return the graph of the classifier in dotty format
 * @throws Exception if the classifier cannot be graphed
 */
public String graph() throws Exception {
  
  if (m_Classifier instanceof Drawable)
    return ((Drawable)m_Classifier).graph();
  else throw new Exception("Classifier: " + 
	     m_Classifier.getClass().getName() + " " +
	     Utils.joinOptions(m_BestClassifierOptions)
	     + " cannot be graphed");
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:16,代碼來源:CVParameterSelection.java

示例12: getClassifierSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
  * Gets the classifier specification string, which contains the class name of
  * the classifier and any options to the classifier
  *
  * @param index the index of the classifier string to retrieve, starting from
  * 0.
  * @return the classifier string, or the empty string if no classifier
  * has been assigned (or the index given is out of range).
  */
 protected String getClassifierSpec(int index) {
   
   if (m_Classifiers.length < index) {
     return "";
   }
   Classifier c = getClassifier(index);
   if (c instanceof OptionHandler) {
     return c.getClass().getName() + " "
+ Utils.joinOptions(((OptionHandler)c).getOptions());
   }
   return c.getClass().getName();
 }
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:22,代碼來源:MultiScheme.java

示例13: statusMessagePrefix

import weka.core.Utils; //導入方法依賴的package包/類
private String statusMessagePrefix() {
  return getCustomName()
    + "$"
    + hashCode()
    + "|"
    + ((m_Filter instanceof OptionHandler && Utils.joinOptions(
      ((OptionHandler) m_Filter).getOptions()).length() > 0) ? Utils
      .joinOptions(((OptionHandler) m_Filter).getOptions()) + "|" : "");
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:10,代碼來源:Filter.java

示例14: getFilterSpec

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Gets the filter specification string, which contains the class name of the
 * filter and any options to the filter.
 * 
 * @return the filter string.
 */
protected String getFilterSpec() {
  String result;
  Filter filter;

  filter = getFilter();
  result = filter.getClass().getName();

  if (filter instanceof OptionHandler) {
    result += " " + Utils.joinOptions(((OptionHandler) filter).getOptions());
  }

  return result;
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:20,代碼來源:FilteredClusterer.java

示例15: AssociationRules

import weka.core.Utils; //導入方法依賴的package包/類
/**
 * Constructs a new AssociationRules.
 * 
 * @param rules the list of rules.
 * @param producer the scheme that produced the rules.
 */
public AssociationRules(List<AssociationRule> rules, Object producer) {
  String producerString = producer.getClass().getName();
  if (producerString.startsWith("weka.associations.")) {
    producerString = producerString.substring("weka.associations.".length());
  }    
  
  if (producer instanceof OptionHandler) {
    String [] o = ((OptionHandler) producer).getOptions();
    producerString += " " + Utils.joinOptions(o);
  }
  
  m_rules = rules;
  m_producer = producerString;
}
 
開發者ID:mydzigear,項目名稱:repo.kmeanspp.silhouette_score,代碼行數:21,代碼來源:AssociationRules.java


注:本文中的weka.core.Utils.joinOptions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。