Example usage for weka.core SelectedTag getSelectedTag

List of usage examples for weka.core SelectedTag getSelectedTag

Introduction

In this page you can find the example usage for weka.core SelectedTag getSelectedTag.

Prototype

public Tag getSelectedTag() 

Source Link

Document

Gets the selected Tag.

Usage

From source file:MultiClassClassifier.java

License:Open Source License

/**
 * Sets the method used. Will be one of METHOD_1_AGAINST_ALL,
 * METHOD_ERROR_RANDOM, METHOD_ERROR_EXHAUSTIVE, or METHOD_1_AGAINST_1.
 *
 * @param newMethod the new method.//  w w  w .j av  a2 s. c  om
 */
public void setMethod(SelectedTag newMethod) {

    if (newMethod.getTags() == TAGS_METHOD) {
        m_Method = newMethod.getSelectedTag().getID();
    }
}

From source file:WrapperSubset.java

License:Open Source License

/**
 * Sets the performance evaluation measure to use for selecting attributes for
 * the decision table//from w w  w .  j  a v a 2 s .  c o m
 *
 * @param newMethod the new performance evaluation metric to use
 */
public void setEvaluationMeasure(SelectedTag newMethod) {
    if (newMethod.getTags() == TAGS_EVALUATION) {
        m_evaluationMeasure = newMethod.getSelectedTag().getID();
    }
}

From source file:SMO.java

License:Open Source License

/**
 * Sets how the training data will be transformed. Should be one of
 * FILTER_NORMALIZE, FILTER_STANDARDIZE, FILTER_NONE.
 *
 * @param newType the new filtering mode
 *//*from w ww  . j  a va  2  s. c  o m*/
public void setFilterType(SelectedTag newType) {

    if (newType.getTags() == TAGS_FILTER) {
        m_filterType = newType.getSelectedTag().getID();
    }
}

From source file:MPCKMeans.java

License:Open Source License

/** Turn metric learning on and off
 * @param trainable should metric learning be done?
 *///from   w  w  w.j a  va  2  s . c  om
public void setTrainable(SelectedTag trainable) {
    if (trainable.getTags() == TAGS_TRAINING) {
        if (m_verbose) {
            System.out.println("Trainable: " + trainable.getSelectedTag().getReadable());
        }
        m_Trainable = trainable.getSelectedTag().getID();
    }
}

From source file:HierarchicalClusterer.java

License:Open Source License

public void setLinkType(SelectedTag newLinkType) {
    if (newLinkType.getTags() == TAGS_LINK_TYPE) {
        m_nLinkType = newLinkType.getSelectedTag().getID();
    }//from  w  ww  . j  av a 2  s.c  om
}

From source file:br.com.ufu.lsi.rebfnetwork.RBFModel.java

License:Open Source License

/**
 * Sets the scale optimization option to use.
 *//* www  .  j a  v  a 2s . c o  m*/
public void setScaleOptimizationOption(SelectedTag newMethod) {

    if (newMethod.getTags() == TAGS_SCALE) {
        m_scaleOptimizationOption = newMethod.getSelectedTag().getID();
    }
}

From source file:cba.Apriori.java

License:Open Source License

/**
 * Set the metric type for ranking rules
 *
 * @param d the type of metric//  w  ww .  j  av a2s.co  m
 */
public void setMetricType(SelectedTag d) {

    if (d.getTags() == TAGS_SELECTION) {
        m_metricType = d.getSelectedTag().getID();
    }

    if (m_significanceLevel != -1 && m_metricType != CONFIDENCE) {
        m_metricType = CONFIDENCE;
    }

    if (m_metricType == CONFIDENCE) {
        setMinMetric(0.9);
    }

    if (m_metricType == LIFT || m_metricType == CONVICTION) {
        setMinMetric(1.1);
    }

    if (m_metricType == LEVERAGE) {
        setMinMetric(0.1);
    }
}

From source file:CGLSMethod.LinearRegression.java

License:Open Source License

/**
 * Sets the method used to select attributes for use in the
 * linear regression. //from   ww  w. jav  a2  s .  com
 *
 * @param method the attribute selection method to use.
 */
public void setAttributeSelectionMethod(SelectedTag method) {

    if (method.getTags() == TAGS_SELECTION) {
        m_AttributeSelection = method.getSelectedTag().getID();
    }
}

From source file:classifier.CustomStringToWordVector.java

License:Open Source License

/**
 * Sets whether if the word frequencies for a document (instance) should be
 * normalized or not.//from   w w  w .  j  a  v  a2 s.co m
 * 
 * @param newType
 *            the new type.
 */
public void setNormalizeDocLength(SelectedTag newType) {

    if (newType.getTags() == TAGS_FILTER) {
        m_filterType = newType.getSelectedTag().getID();
    }
}

From source file:clusterer.SimpleKMeansWithSilhouette.java

License:Open Source License

/**
 * Set the initialization method to use/*  www.  j  a  va  2  s.c o  m*/
 * 
 * @param method the initialization method to use
 */
public void setInitializationMethod(SelectedTag method) {
    if (method.getTags() == TAGS_SELECTION) {
        m_initializationMethod = method.getSelectedTag().getID();
    }
}