Refine search
/** * Create an option specification string for a filter * * @param f the filter * @return the option spec */ protected String getFilterSpec(Filter f) { return f.getClass().getName() + (f instanceof OptionHandler ? " " + Utils.joinOptions(((OptionHandler) f).getOptions()) : ""); }
/** * Create an option specification string for a filter * * @param f the filter * @return the option spec */ public static String getFilterSpec(Filter f) { return f.getClass().getName() + (f instanceof OptionHandler ? " " + Utils.joinOptions(((OptionHandler) f).getOptions()) : ""); }
@Override public String getValueAsCLIString() { if ((this.currentValue == null) && (this.nullString != null)) { return this.nullString; } String result = currentValue.getClass().getName(); if (currentValue instanceof weka.core.OptionHandler) result += " " + Utils.joinOptions(((weka.core.OptionHandler) currentValue).getOptions()); result = result.trim(); return result; }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Filter instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Filter).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Filter).getOptions()) + "|" : ""); } }
/** * Returns the commandline of the given object. * * @param obj the object to create the commandline for * @return the commandline */ public String getCommandline(Object obj) { String result; result = obj.getClass().getName(); if (obj instanceof OptionHandler) result += " " + Utils.joinOptions(((OptionHandler) obj).getOptions()); return result.trim(); }
/** * Returns the commandline of the given object. * * @param obj the object to create the commandline for * @return the commandline */ public String getCommandline(Object obj) { String result; result = obj.getClass().getName(); if (obj instanceof OptionHandler) result += " " + Utils.joinOptions(((OptionHandler) obj).getOptions()); return result.trim(); }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_ClassifierTemplate instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_ClassifierTemplate).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_ClassifierTemplate).getOptions()) + "|" : ""); }
/** * Returns the commandline of the given object. * * @param obj the object to create the commandline for * @return the commandline */ public String getCommandline(Object obj) { String result; result = obj.getClass().getName(); if (obj instanceof OptionHandler) result += " " + Utils.joinOptions(((OptionHandler) obj).getOptions()); return result.trim(); }
protected String makeClustererSpec(weka.clusterers.Clusterer clusterer) { String clusterSpec = clusterer.getClass().getCanonicalName(); clusterSpec = clusterSpec.substring(clusterSpec.lastIndexOf('.') + 1, clusterSpec.length()); String opts = " "; if (clusterer instanceof OptionHandler) { opts = Utils.joinOptions(((OptionHandler) clusterer).getOptions()); } return clusterSpec + opts; } }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Clusterer instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Clusterer).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Clusterer).getOptions()) + "|" : ""); } }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Filter instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Filter).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Filter).getOptions()) + "|" : ""); } }
protected String makeClustererSpec(weka.clusterers.Clusterer clusterer) { String clusterSpec = clusterer.getClass().getCanonicalName(); clusterSpec = clusterSpec.substring(clusterSpec.lastIndexOf('.') + 1, clusterSpec.length()); String opts = " "; if (clusterer instanceof OptionHandler) { opts = Utils.joinOptions(((OptionHandler) clusterer).getOptions()); } return clusterSpec + opts; } }
protected String makeSchemeSpec(Object scheme, int setNum, int maxSetNum) { String name = scheme.getClass().getCanonicalName(); name = name.substring(name.lastIndexOf('.') + 1, name.length()); if (scheme instanceof OptionHandler) { name += " " + Utils.joinOptions(((OptionHandler) scheme).getOptions()); } if (maxSetNum != 1) { name += " (set " + setNum + " of " + maxSetNum + ")"; } return name; }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_ClassifierTemplate instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_ClassifierTemplate).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_ClassifierTemplate).getOptions()) + "|" : ""); }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Associator instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Associator).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Associator).getOptions()) + "|" : ""); } }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Clusterer instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Clusterer).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Clusterer).getOptions()) + "|" : ""); } }
protected String makeSchemeSpec(Object scheme, int setNum, int maxSetNum) { String name = scheme.getClass().getCanonicalName(); name = name.substring(name.lastIndexOf('.') + 1, name.length()); if (scheme instanceof OptionHandler) { name += " " + Utils.joinOptions(((OptionHandler) scheme).getOptions()); } if (maxSetNum != 1) { name += " (set " + setNum + " of " + maxSetNum + ")"; } return name; }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Associator instanceof OptionHandler && Utils.joinOptions( ((OptionHandler) m_Associator).getOptions()).length() > 0) ? Utils .joinOptions(((OptionHandler) m_Associator).getOptions()) + "|" : ""); } }
private String statusMessagePrefix() { return getCustomName() + "$" + hashCode() + "|" + ((m_Saver instanceof OptionHandler) ? Utils .joinOptions(((OptionHandler) m_Saver).getOptions()) + "|" : ""); }
/** * 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 getIterativeClassifierSpec() { IterativeClassifier c = getIterativeClassifier(); return c.getClass().getName() + " " + Utils.joinOptions(((OptionHandler) c).getOptions()); }