weka.classifiers.functions
Class Logistic.OptEng

java.lang.Object
  extended byweka.core.Optimization
      extended byweka.classifiers.functions.Logistic.OptEng
Enclosing class:
Logistic

private class Logistic.OptEng
extends Optimization


Field Summary
private  int[] cls
           
private  double[] weights
           
 
Fields inherited from class weka.core.Optimization
m_ALF, m_BETA, m_Debug, m_Epsilon, m_f, m_MAXITS, m_STPMX, m_TOLX, m_Zero
 
Constructor Summary
private Logistic.OptEng()
           
 
Method Summary
protected  double[] evaluateGradient(double[] x)
          Evaluate Jacobian vector
protected  double objectiveFunction(double[] x)
          Evaluate objective function
 void setClassLabels(int[] c)
           
 void setWeights(double[] w)
           
 
Methods inherited from class weka.core.Optimization
evaluateHessian, findArgmin, getMinFunction, getVarbValues, lnsrch, setDebug, setMaxIteration, solveTriangle, updateCholeskyFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weights

private double[] weights

cls

private int[] cls
Constructor Detail

Logistic.OptEng

private Logistic.OptEng()
Method Detail

setWeights

public void setWeights(double[] w)

setClassLabels

public void setClassLabels(int[] c)

objectiveFunction

protected double objectiveFunction(double[] x)
Evaluate objective function

Specified by:
objectiveFunction in class Optimization
Parameters:
x - the current values of variables
Returns:
the value of the objective function

evaluateGradient

protected double[] evaluateGradient(double[] x)
Evaluate Jacobian vector

Specified by:
evaluateGradient in class Optimization
Parameters:
x - the current values of variables
Returns:
the gradient vector