程序包 weka.experiment

类 DensityBasedClustererSplitEvaluator

java.lang.Object
weka.experiment.DensityBasedClustererSplitEvaluator
所有已实现的接口:
Serializable, AdditionalMeasureProducer, OptionHandler, RevisionHandler, SplitEvaluator

public class DensityBasedClustererSplitEvaluator extends Object implements SplitEvaluator, OptionHandler, AdditionalMeasureProducer, RevisionHandler
A SplitEvaluator that produces results for a density based clusterer. -W classname
Specify the full class name of the clusterer to evaluate.

版本:
$Revision: 11198 $
作者:
Mark Hall (mhall{[at]}pentaho{[dot]}org
另请参阅:
  • 构造器详细资料

    • DensityBasedClustererSplitEvaluator

      public DensityBasedClustererSplitEvaluator()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this split evaluator
      返回:
      a description of the split evaluator suitable for displaying in the explorer/experimenter gui
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a given list of options. Valid options are:

      -W classname
      Specify the full class name of the clusterer to evaluate.

      All option after -- will be passed to the classifier.

      指定者:
      setOptions 在接口中 OptionHandler
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current settings of the Classifier.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      an array of strings suitable for passing to setOptions
    • setAdditionalMeasures

      public void setAdditionalMeasures(String[] additionalMeasures)
      Set a list of method names for additional measures to look for in Classifiers. This could contain many measures (of which only a subset may be produceable by the current Classifier) if an experiment is the type that iterates over a set of properties.
      指定者:
      setAdditionalMeasures 在接口中 SplitEvaluator
      参数:
      additionalMeasures - a list of method names
    • enumerateMeasures

      public Enumeration enumerateMeasures()
      Returns an enumeration of any additional measure names that might be in the classifier
      指定者:
      enumerateMeasures 在接口中 AdditionalMeasureProducer
      返回:
      an enumeration of the measure names
    • getMeasure

      public double getMeasure(String additionalMeasureName)
      Returns the value of the named measure
      指定者:
      getMeasure 在接口中 AdditionalMeasureProducer
      参数:
      measureName - the name of the measure to query for its value
      返回:
      the value of the named measure
      抛出:
      IllegalArgumentException - if the named measure is not supported
    • getKeyTypes

      public Object[] getKeyTypes()
      Gets the data types of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.
      指定者:
      getKeyTypes 在接口中 SplitEvaluator
      返回:
      an array containing objects of the type of each key column. The objects should be Strings, or Doubles.
    • getKeyNames

      public String[] getKeyNames()
      Gets the names of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.
      指定者:
      getKeyNames 在接口中 SplitEvaluator
      返回:
      an array containing the name of each key column
    • getKey

      public Object[] getKey()
      Gets the key describing the current SplitEvaluator. For example This may contain the name of the classifier used for classifier predictive evaluation. The number of key fields must be constant for a given SplitEvaluator.
      指定者:
      getKey 在接口中 SplitEvaluator
      返回:
      an array of objects containing the key.
    • getResultTypes

      public Object[] getResultTypes()
      Gets the data types of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.
      指定者:
      getResultTypes 在接口中 SplitEvaluator
      返回:
      an array containing objects of the type of each result column. The objects should be Strings, or Doubles.
    • getResultNames

      public String[] getResultNames()
      Gets the names of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.
      指定者:
      getResultNames 在接口中 SplitEvaluator
      返回:
      an array containing the name of each result column
    • getResult

      public Object[] getResult(Instances train, Instances test) throws Exception
      Gets the results for the supplied train and test datasets.
      指定者:
      getResult 在接口中 SplitEvaluator
      参数:
      train - the training Instances.
      test - the testing Instances.
      返回:
      the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).
      抛出:
      Exception - if a problem occurs while getting the results
    • removeClassColumnTipText

      public String removeClassColumnTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • setRemoveClassColumn

      public void setRemoveClassColumn(boolean r)
      Set whether the class column should be removed from the data.
      参数:
      r - true if the class column is to be removed.
    • getRemoveClassColumn

      public boolean getRemoveClassColumn()
      Get whether the class column is to be removed.
      返回:
      true if the class column is to be removed.
    • clustererTipText

      public String clustererTipText()
      Returns the tip text for this property
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • getClusterer

      public DensityBasedClusterer getClusterer()
      Get the value of clusterer
      返回:
      Value of clusterer.
    • setClusterer

      public void setClusterer(DensityBasedClusterer newClusterer)
      Sets the clusterer.
      参数:
      newClassifier - the new clusterer to use.
    • setClustererName

      public void setClustererName(String newClustererName) throws Exception
      Set the Clusterer to use, given it's class name. A new clusterer will be instantiated.
      参数:
      newClusterer - the Classifier class name.
      抛出:
      Exception - if the class name is invalid.
    • getRawResultOutput

      public String getRawResultOutput()
      Gets the raw output from the classifier
      指定者:
      getRawResultOutput 在接口中 SplitEvaluator
      返回:
      the raw output from the classifier
    • toString

      public String toString()
      Returns a text description of the split evaluator.
      覆盖:
      toString 在类中 Object
      返回:
      a text description of the split evaluator.
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision