OpenCV 2.4.8

org.opencv.ml
Class CvANN_MLP_TrainParams

java.lang.Object
  extended by org.opencv.ml.CvANN_MLP_TrainParams

public class CvANN_MLP_TrainParams
extends java.lang.Object

Parameters of the MLP training algorithm. You can initialize the structure by a constructor or the individual parameters can be adjusted after the structure is created.

The back-propagation algorithm parameters:

Strength of the weight gradient term. The recommended value is about 0.1.

Strength of the momentum term (the difference between weights on the 2 previous iterations). This parameter provides some inertia to smooth the random fluctuations of the weights. It can vary from 0 (the feature is disabled) to 1 and beyond. The value 0.1 or so is good enough

// C++ code:

The RPROP algorithm parameters (see [RPROP93] for details):

Initial value Delta_0 of update-values Delta_(ij).

Increase factor eta^+. It must be >1.

Decrease factor eta^-. It must be <1.

Update-values lower limit Delta_(min). It must be positive.

Update-values upper limit Delta_(max). It must be >1.

See Also:
org.opencv.ml.CvANN_MLP_TrainParams

Field Summary
static int BACKPROP
           
static int RPROP
           
 
Constructor Summary
CvANN_MLP_TrainParams()
          The constructors.
 
Method Summary
 double get_bp_dw_scale()
           
 double get_bp_moment_scale()
           
 double get_rp_dw_max()
           
 double get_rp_dw_min()
           
 double get_rp_dw_minus()
           
 double get_rp_dw_plus()
           
 double get_rp_dw0()
           
 TermCriteria get_term_crit()
           
 int get_train_method()
           
 void set_bp_dw_scale(double bp_dw_scale)
           
 void set_bp_moment_scale(double bp_moment_scale)
           
 void set_rp_dw_max(double rp_dw_max)
           
 void set_rp_dw_min(double rp_dw_min)
           
 void set_rp_dw_minus(double rp_dw_minus)
           
 void set_rp_dw_plus(double rp_dw_plus)
           
 void set_rp_dw0(double rp_dw0)
           
 void set_term_crit(TermCriteria term_crit)
           
 void set_train_method(int train_method)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKPROP

public static final int BACKPROP
See Also:
Constant Field Values

RPROP

public static final int RPROP
See Also:
Constant Field Values
Constructor Detail

CvANN_MLP_TrainParams

public CvANN_MLP_TrainParams()

The constructors.

By default the RPROP algorithm is used:

// C++ code:

CvANN_MLP_TrainParams.CvANN_MLP_TrainParams()

term_crit = cvTermCriteria(CV_TERMCRIT_ITER + CV_TERMCRIT_EPS, 1000, 0.01);

train_method = RPROP;

bp_dw_scale = bp_moment_scale = 0.1;

rp_dw0 = 0.1; rp_dw_plus = 1.2; rp_dw_minus = 0.5;

rp_dw_min = FLT_EPSILON; rp_dw_max = 50.;

See Also:
org.opencv.ml.CvANN_MLP_TrainParams.CvANN_MLP_TrainParams
Method Detail

get_bp_dw_scale

public double get_bp_dw_scale()

get_bp_moment_scale

public double get_bp_moment_scale()

get_rp_dw_max

public double get_rp_dw_max()

get_rp_dw_min

public double get_rp_dw_min()

get_rp_dw_minus

public double get_rp_dw_minus()

get_rp_dw_plus

public double get_rp_dw_plus()

get_rp_dw0

public double get_rp_dw0()

get_term_crit

public TermCriteria get_term_crit()

get_train_method

public int get_train_method()

set_bp_dw_scale

public void set_bp_dw_scale(double bp_dw_scale)

set_bp_moment_scale

public void set_bp_moment_scale(double bp_moment_scale)

set_rp_dw_max

public void set_rp_dw_max(double rp_dw_max)

set_rp_dw_min

public void set_rp_dw_min(double rp_dw_min)

set_rp_dw_minus

public void set_rp_dw_minus(double rp_dw_minus)

set_rp_dw_plus

public void set_rp_dw_plus(double rp_dw_plus)

set_rp_dw0

public void set_rp_dw0(double rp_dw0)

set_term_crit

public void set_term_crit(TermCriteria term_crit)

set_train_method

public void set_train_method(int train_method)

OpenCV 2.4.8 Documentation