类 KStarNumericAttribute

java.lang.Object
weka.classifiers.lazy.kstar.KStarNumericAttribute
所有已实现的接口:
KStarConstants, RevisionHandler

public class KStarNumericAttribute extends Object implements KStarConstants, RevisionHandler
A custom class which provides the environment for computing the transformation probability of a specified test instance numeric attribute to a specified train instance numeric attribute.
版本:
$Revision 1.0 $
作者:
Len Trigg (len@reeltwo.com), Abdelaziz Mahoui (am14@cs.waikato.ac.nz)
  • 构造器详细资料

    • KStarNumericAttribute

      public KStarNumericAttribute(Instance test, Instance train, int attrIndex, Instances trainSet, int[][] randClassCols, KStarCache cache)
      Constructor
  • 方法详细资料

    • transProb

      public double transProb()
      Calculates the transformation probability of the attribute indexed "m_AttrIndex" in test instance "m_Test" to the same attribute in the train instance "m_Train".
      返回:
      the probability value
    • setOptions

      public void setOptions(int missingmode, int blendmethod, int blendfactor)
      Set options.
      参数:
      missingmode - the missing value treatment to use
      blendmethod - the blending method to use
      blendfactor - the level of blending to use
    • setMissingMode

      public void setMissingMode(int mode)
      Set the missing value mode.
      参数:
      mode - the type of missing value treatment to use
    • setBlendMethod

      public void setBlendMethod(int method)
      Set the blending method
      参数:
      method - the blending method to use
    • setBlendFactor

      public void setBlendFactor(int factor)
      Set the blending factor
      参数:
      factor - the level of blending to use
    • getRevision

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