All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.DistributionClassifier
|
+----weka.classifiers.Logistic
This class utilizes globally convergent Newtons Method adapted from Numerical Recipies in C. Reference: le Cessie, S. and van Houwelingen, J.C. (1997). Ridge Estimators in Logistic Regression. Applied Statistics, Vol. 41, No. 1, pp. 191-201.
Missing values are replaced using a ReplaceMissingValuesFilter, and nominal attributes are transformed into numeric attributes using a NominalToBinaryFilter.
Valid options are:
-D
Turn on debugging output.
public Logistic()
public void lnsrch(int n,
double xold[],
double fold,
double g[],
double p[],
double x[],
double stpmax,
double X[][],
double Y[]) throws java.lang.Exception
n - number of variables
xold - old point
fold - value at that point
g - gtradient at that point
p - direction
x - new value along direction p from xold
stpmax - maximum step length
X - instance data
Y - class values
public java.util.Enumeration listOptions()
public void setOptions(java.lang.String options[]) throws java.lang.Exception
-D
Turn on debugging output.
options - the list of options as an array of strings
public java.lang.String[] getOptions()
public void setDebug(boolean debug)
debug - true if debugging output should be printed
public boolean getDebug()
public void buildClassifier(Instances train) throws java.lang.Exception
data - the training data to be used for generating the
boosted classifier.
public double[] distributionForInstance(Instance instance) throws java.lang.Exception
instance - the instance for which distribution is computed
public java.lang.String toString()
public static void main(java.lang.String argv[])
argv - should contain the command line arguments to the
scheme (see Evaluation)
All Packages Class Hierarchy This Package Previous Next Index WEKA's home