Documentation of 'weka.classifiers.lazy.kstar.KStarNominalAttribute' Java class
KStarNominalAttribute
weka.classifiers.lazy.kstar

Class KStarNominalAttribute

  • All Implemented Interfaces:
    KStarConstants, RevisionHandler


    public class KStarNominalAttribute
    extends java.lang.Object
    implements KStarConstants, RevisionHandler
    A custom class which provides the environment for computing the transformation probability of a specified test instance nominal attribute to a specified train instance nominal attribute.
    • Constructor Detail

      • KStarNominalAttribute

        public KStarNominalAttribute(Instance test,
                                     Instance train,
                                     int attrIndex,
                                     Instances trainSet,
                                     int[][] randClassCol,
                                     KStarCache cache)
        Constructor
    • Method Detail

      • transProb

        public double transProb()
        Calculates the probability of the indexed nominal attribute of the test instance transforming into the indexed nominal attribute of the training instance.
        Returns:
        the value of the transformation probability.
      • setOptions

        public void setOptions(int missingmode,
                               int blendmethod,
                               int blendfactor)
        Sets the options.
      • getRevision

        public java.lang.String getRevision()
        Returns the revision string.
        Specified by:
        getRevision in interface RevisionHandler
        Returns:
        the revision

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.