Click or drag to resize

SVMClassificationTrainCSVC Method

Train C - Support Vector Classifier

Namespace:  FinMath.MachineLearning.SVM
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public void TrainCSVC(
	Matrix observations,
	IntegerArray classes,
	bool autoScale = true,
	SVMKernelBase kernel = null,
	double C = 1,
	Vector weight = null,
	IntegerArray weightLabel = null,
	bool autoWeight = true,
	double cacheSize = 100,
	double eps = 0.001,
	int maximumIterations = 0,
	TimeSpan modelTrainTimeout = null,
	bool shrinkingHeuristics = true
)

Parameters

observations
Type: FinMath.LinearAlgebraMatrix
Observation matrix (N*M size). Columns corresponds to factors, rows to observation.
classes
Type: FinMath.DataStructuresIntegerArray
The vector (N size) class indexes.
autoScale (Optional)
Type: SystemBoolean
Auto scale observations. Normalize the observations matrix such that columns of observations are centered to have mean 0 and scaled to have standard deviation 1.
kernel (Optional)
Type: FinMath.MachineLearning.SVMSVMKernelBase
The kernel function for SVM model (default RadialBasisFunction).
C (Optional)
Type: SystemDouble
C is the penalty parameter of the error term (default 1).
weight (Optional)
Type: FinMath.LinearAlgebraVector
The class weight vector. Set the parameter C of class i to weight*C (default 1).
weightLabel (Optional)
Type: FinMath.DataStructuresIntegerArray
The class indexes vector of the parameter weight.
autoWeight (Optional)
Type: SystemBoolean
Generate class weights inversely proportional to the class power (default true).
cacheSize (Optional)
Type: SystemDouble
The cache memory size in MB (default 100).
eps (Optional)
Type: SystemDouble
The tolerance of termination criterion (default 0.001).
maximumIterations (Optional)
Type: SystemInt32
The maximum iterations number (0 means auto).
modelTrainTimeout (Optional)
Type: SystemTimeSpan
One model train timeout (0 means no restriction).
shrinkingHeuristics (Optional)
Type: SystemBoolean
Whether to use the shrinking heuristics flag (default true).
See Also