All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.kstar.KStarNominalAttribute

java.lang.Object
   |
   +----weka.classifiers.kstar.KStarNominalAttribute

public class KStarNominalAttribute
extends Object
implements KStarConstants
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.

Author:
Len Trigg (len@intelligenesis.net), Abdelaziz Mahoui (am14@cs.waikato.ac.nz)

Constructor Index

 o KStarNominalAttribute(Instance, Instance, int, Instances, int[][], KStarCache)
Constructor

Method Index

 o setOptions(int, int, int)
Sets the options.
 o transProb()
Calculates the probability of the indexed nominal attribute of the test instance transforming into the indexed nominal attribute of the training instance.

Constructors

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

Methods

 o 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.
 o setOptions
 public void setOptions(int missingmode,
                        int blendmethod,
                        int blendfactor)
Sets the options.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home