Table of Contents

Method SetTrainMethod

Namespace
OpenCvSharp.ML
Assembly
OpenCvSharp.dll

SetTrainMethod(TrainingMethods, double, double)

Sets training method and common parameters.

public virtual void SetTrainMethod(ANN_MLP.TrainingMethods method, double param1 = 0, double param2 = 0)

Parameters

method ANN_MLP.TrainingMethods

Default value is ANN_MLP::RPROP. See ANN_MLP::TrainingMethods.

param1 double

passed to setRpropDW0 for ANN_MLP::RPROP and to setBackpropWeightScale for ANN_MLP::BACKPROP and to initialT for ANN_MLP::ANNEAL.

param2 double

passed to setRpropDWMin for ANN_MLP::RPROP and to setBackpropMomentumScale for ANN_MLP::BACKPROP and to finalT for ANN_MLP::ANNEAL.