http://www.emgu.com
Assembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.3.0.1416 (2.3.0.1416)
Update the KNearest classifier using the specific traing data.
Namespace: Emgu.CV.MLAssembly: Emgu.CV.ML (in Emgu.CV.ML.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static bool CvKNearestTrain( IntPtr classifier, IntPtr trainData, IntPtr responses, IntPtr sampleIdx, bool isRegression, int maxK, bool updateBase ) |
Visual Basic |
---|
Public Shared Function CvKNearestTrain ( _ classifier As IntPtr, _ trainData As IntPtr, _ responses As IntPtr, _ sampleIdx As IntPtr, _ isRegression As Boolean, _ maxK As Integer, _ updateBase As Boolean _ ) As Boolean |
Visual C++ |
---|
public: static bool CvKNearestTrain( IntPtr classifier, IntPtr trainData, IntPtr responses, IntPtr sampleIdx, bool isRegression, int maxK, bool updateBase ) |
Parameters
- classifier
- Type: System..::..IntPtr
The KNearest classifier to be updated
- trainData
- Type: System..::..IntPtr
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
- responses
- Type: System..::..IntPtr
A floating-point matrix of the corresponding output vectors, one vector per row.
- sampleIdx
- Type: System..::..IntPtr
Can be IntPtr.Zero if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
- isRegression
- Type: System..::..Boolean
Specify the output variables type. It can be either categorical (isRegression=false) or ordered (isRegression=true)
- maxK
- Type: System..::..Int32
The number of maximum neighbors that may be passed to the method findNearest.
- updateBase
- Type: System..::..Boolean
If true, the existing classifer is updated using the new training data; Otherwise, the classifier is trained from scratch
Return Value
[Missing <returns> documentation for "M:Emgu.CV.ML.MlInvoke.CvKNearestTrain(System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.Boolean,System.Int32,System.Boolean)"]