edu.cmu.cs.sb.drem
Class DREM_NaiveBayes

java.lang.Object
  extended by edu.cmu.cs.sb.drem.DREM_NaiveBayes

public class DREM_NaiveBayes
extends java.lang.Object

Implements a naive bayes classifier This class is used for predicting whether a gene with a specified set of regulators will be filtered or not.


Constructor Summary
DREM_NaiveBayes(int[][] traindata, int[][] traindataIndex, int numcols, int[] y, int[] featurevals, int numclasses)
          Class constructor - builds the classifier
 
Method Summary
 double[] distributionForInstance(int[] theInstance)
          Returns the probability of each class for the feature values in theInstance under the naive bayes models.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DREM_NaiveBayes

public DREM_NaiveBayes(int[][] traindata,
                       int[][] traindataIndex,
                       int numcols,
                       int[] y,
                       int[] featurevals,
                       int numclasses)
Class constructor - builds the classifier

Method Detail

distributionForInstance

public double[] distributionForInstance(int[] theInstance)
Returns the probability of each class for the feature values in theInstance under the naive bayes models.