MLP_Train


Creates and trains multilayer perceptron classifier.

Syntax

C++
C#
Python
 
def MLP_Train(
	inMlpModel: MlpModel,
	inInputVectorArray: list[ list[float] ],
	inResponseVectorArray: list[ list[float] ],
	outMlpModel: MlpModel,
	/,
	*,
	inTestInputVectorArray: list[ list[float] ] | None = None,
	inTestResponseVectorArray: list[ list[float] ] | None = None,
	inIterationCount: int = 100,
	inLearningRate: float = 1.0,
	inMomentum: float = 0.01,
	inRandomSeed: int | None = None,
	diagErrorChartLearning: Profile | None = None,
	diagErrorChartTesting: Profile | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inMlpModel MlpModel Initialized MLP model
Input value inInputVectorArray list[ list[float] ] Array of features used to train model
Input value inResponseVectorArray list[ list[float] ] Array of answers which classifier should get.
Input value inTestInputVectorArray list[ list[float] ] | None None Array of features used to test classifier during training process
Input value inTestResponseVectorArray list[ list[float] ] | None None Array of answers used to test classifier during training process
Input value inIterationCount int 1 - 100 Learning iteration count
Input value inLearningRate float 0.01 - 1.0 1.0 Learning factor
Input value inMomentum float 0.0 - 1.0 0.01 Learning momentum ratio
Input value inRandomSeed int | None 0 - None Number used as starting random seed
Output value outMlpModel MlpModel Trained MlpModel
Diagnostic input diagErrorChartLearning Profile | None None Mean error of testing results data during learning process
Diagnostic input diagErrorChartTesting Profile | None None Mean error during learning process