本文整理匯總了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;
}
示例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 = "";
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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()) + "|" : "");
}
示例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();
}
示例9: statusMessagePrefix
import weka.core.Utils; //導入方法依賴的package包/類
private String statusMessagePrefix() {
return getCustomName()
+ "$"
+ hashCode()
+ "|"
+ ((m_Loader instanceof OptionHandler) ? Utils
.joinOptions(((OptionHandler) m_Loader).getOptions()) + "|" : "");
}
示例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";
}
示例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");
}
示例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();
}
示例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()) + "|" : "");
}
示例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;
}
示例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;
}