Class ClassifierBayesUpdaterDiscrete

java.lang.Object
edu.cmu.tetrad.classify.ClassifierBayesUpdaterDiscrete
All Implemented Interfaces:
ClassifierDiscrete, TetradSerializable, Serializable

public final class ClassifierBayesUpdaterDiscrete extends Object implements ClassifierDiscrete, TetradSerializable
This class contains a method classify which uses an instantiated Bayes net (BayesIm) provided in the constructor. For each case (record) in the DataSet it uses the values of all variables but the target variable to update the distributions of all the variables. It then computes an estimated value for the target variable by selecting the value with the greatest probability in the updated distribution. The method returns a crosstabulation table in the form of a two-dimensional integer array in which coefs of observed versus estimated values of the target variable are stored. Note that the variables must be the same in the dataset and the Bayes net.
Version:
$Id: $Id
Author:
Frank Wimberly based on a specification by Clark Glymour
See Also: