Tabnine Logo
SingleClassifierEnhancer.getOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
getOptions
method
in
weka.classifiers.SingleClassifierEnhancer

Best Java code snippets using weka.classifiers.SingleClassifierEnhancer.getOptions (Showing top 17 results out of 315)

origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Gets the current settings of the Classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 Vector<String> result = new Vector<String>();
 result.add("-M");
 result.add("" + m_TransformMethod);
 Collections.addAll(result, super.getOptions());
 return result.toArray(new String[result.size()]);
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 
 options.add("-S");
 options.add("" + getSeed());
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 
 options.add("-S");
 options.add("" + getSeed());
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Gets the current settings of the Classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 Vector<String> result = new Vector<String>();
 result.add("-P");
 result.add("" + m_Method);
 result.add("-A");
 result.add("" + m_WeightMethod);
 Collections.addAll(result, super.getOptions());
 return result.toArray(new String[result.size()]);
}
origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Gets the current settings of the filter.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 Vector<String> options = new Vector<String>();
 options.add("-P");
 options.add("" + getPartitionGeneratorSpec());
 Collections.addAll(options, super.getOptions());
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 String [] superOptions = super.getOptions();
 String [] options = new String [superOptions.length + 2];
 int current = 0;
 options[current++] = "-I";
 options[current++] = "" + getNumIterations();
 System.arraycopy(superOptions, 0, options, current,
   superOptions.length);
 return options;
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 String [] superOptions = super.getOptions();
 String [] options = new String [superOptions.length + 2];
 int current = 0;
 options[current++] = "-I";
 options[current++] = "" + getNumIterations();
 System.arraycopy(superOptions, 0, options, current,
   superOptions.length);
 return options;
}
origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Gets the current settings of the classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 Vector<String> result = new Vector<String>(4);
 result.add("-R");
 result.add("" + getMaxIterations());
 result.add("-B");
 result.add("" + getDiscretizeBin());
 Collections.addAll(result, super.getOptions());
 return result.toArray(new String[result.size()]);
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the Classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 // same attribute evaluator
 options.add("-E");
 options.add("" +getEvaluatorSpec());
 
 // same for search
 options.add("-S");
 options.add("" + getSearchSpec());
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the Classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 // same attribute evaluator
 options.add("-E");
 options.add("" +getEvaluatorSpec());
 
 // same for search
 options.add("-S");
 options.add("" + getSearchSpec());
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/distributedWekaBase

@Override
public String[] getOptions() {
 List<String> options = new ArrayList<String>();
 if (getPathToPreConstructedFilter() != null
  && getPathToPreConstructedFilter().length() > 0) {
  options.add("-load-filter");
  options.add(getPathToPreConstructedFilter());
 }
 String[] superOpts = super.getOptions();
 for (String s : superOpts) {
  options.add(s);
 }
 return options.toArray(new String[options.size()]);
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 options.add("-U"); options.add("" + getWeightingKernel());
 if ( (getKNN() == 0) && m_UseAllK) {
   options.add("-K"); options.add("-1");
 }
 else {
   options.add("-K"); options.add("" + getKNN());
 }
 options.add("-A");
 options.add(m_NNSearch.getClass().getName()+" "+Utils.joinOptions(m_NNSearch.getOptions()));; 
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 options.add("-U"); options.add("" + getWeightingKernel());
 if ( (getKNN() == 0) && m_UseAllK) {
   options.add("-K"); options.add("-1");
 }
 else {
   options.add("-K"); options.add("" + getKNN());
 }
 options.add("-A");
 options.add(m_NNSearch.getClass().getName()+" "+Utils.joinOptions(m_NNSearch.getOptions()));; 
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[0]);
}

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the Classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 options.add("-B");
 options.add("" + getNumBins());
 if (getDeleteEmptyBins()) {
  options.add("-E");
 }
 if (getUseEqualFrequency()) {
  options.add("-F");
 }
 if (getMinimizeAbsoluteError()) {
  options.add("-A");
 }
 options.add("-K");
 if (getEstimator() instanceof OptionHandler) {
  options.add("" + getEstimator().getClass().getName() + " " + 
   Utils.joinOptions(((OptionHandler)getEstimator()).getOptions()));
 } else {
  options.add("" + getEstimator().getClass().getName());
 }
 Collections.addAll(options, super.getOptions());
 return options.toArray(new String[0]);
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the Classifier.
 *
 * @return an array of strings suitable for passing to setOptions
 */
public String [] getOptions() {
 Vector<String> options = new Vector<String>();
 options.add("-B");
 options.add("" + getNumBins());
 if (getDeleteEmptyBins()) {
  options.add("-E");
 }
 if (getUseEqualFrequency()) {
  options.add("-F");
 }
 if (getMinimizeAbsoluteError()) {
  options.add("-A");
 }
 options.add("-K");
 if (getEstimator() instanceof OptionHandler) {
  options.add("" + getEstimator().getClass().getName() + " " + 
   Utils.joinOptions(((OptionHandler)getEstimator()).getOptions()));
 } else {
  options.add("" + getEstimator().getClass().getName());
 }
 Collections.addAll(options, super.getOptions());
 return options.toArray(new String[0]);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the Classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 String[] superOptions = super.getOptions();
 String[] options = new String[superOptions.length + 5];
 int current = 0;
 if (getIgnoreCaseForNames()) {
  options[current++] = "-I";
 }
 if (getSuppressMappingReport()) {
  options[current++] = "-M";
 }
 if (getTrim()) {
  options[current++] = "-trim";
 }
 if (getModelPath() != null && getModelPath().length() > 0) {
  options[current++] = "-L";
  options[current++] = getModelPath();
 }
 System.arraycopy(superOptions, 0, options, current, superOptions.length);
 current += superOptions.length;
 while (current < options.length) {
  options[current++] = "";
 }
 return options;
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the Classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 String[] superOptions = super.getOptions();
 String[] options = new String[superOptions.length + 5];
 int current = 0;
 if (getIgnoreCaseForNames()) {
  options[current++] = "-I";
 }
 if (getSuppressMappingReport()) {
  options[current++] = "-M";
 }
 if (getTrim()) {
  options[current++] = "-trim";
 }
 if (getModelPath() != null && getModelPath().length() > 0) {
  options[current++] = "-L";
  options[current++] = getModelPath();
 }
 System.arraycopy(superOptions, 0, options, current, superOptions.length);
 current += superOptions.length;
 while (current < options.length) {
  options[current++] = "";
 }
 return options;
}
weka.classifiersSingleClassifierEnhancergetOptions

Javadoc

Gets the current settings of the Classifier.

Popular methods of SingleClassifierEnhancer

  • getCapabilities
    Returns default capabilities of the base classifier.
  • listOptions
    Returns an enumeration describing the available options.
  • setOptions
    Parses a given list of options. Valid options are: -W classname Specify the full class name of the
  • setClassifier
    Set the base learner.
  • defaultClassifierOptions
    String describing options for default classifier.
  • defaultClassifierString
    String describing default classifier.
  • getBatchSize
  • getClassifier
    Get the classifier used as the base learner.
  • implementsMoreEfficientBatchPrediction
  • setBatchSize
  • distributionsForInstances
  • distributionsForInstances

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now