MIL_ID SrcResultClassId, | //in |
MIL_INT64 SrcIndex, | //in |
MIL_ID DstContextClassId, | //in |
MIL_INT64 DstIndex, | //in |
MIL_INT64 CopyType, | //in |
MIL_INT64 ControlFlag | //in |
This function copies data from a classification result buffer to a classifier or dataset context. For example, you can copy the trained classifier result to a classifier context. The specified result buffer from which to copy (the source) must be for the same type of classifier as the specified context or dataset in which to copy (the destination).
You can only copy trained results after calling MclassTrain(). Once you copy the trained results into a classifier context, you can continue to train that context (MclassTrain()) or you can predict with it (MclassPredict()).
Specifies the identifier of the source classification result buffer from which to copy. The result buffer must have been allocated using MclassAllocResult(). The type of result buffer that you can specify depends on the copy operation (CopyType). Set this parameter to one of the following values.
For specifying the source result
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
ResultBufTrainId |
Specifies the identifier of a classification result buffer (M_TRAIN_CNN_RESULT or M_TRAIN_TREE_ENSEMBLE_RESULT) that holds the results produced from calling MclassTrain() with a CNN training context or tree ensemble training context. |
Specifies the identifier of the destination classifier or dataset context in which to copy. The classifier or dataset context must have been allocated using MclassAllocResult(). The type of result buffer that you can specify depends on the copy operation (CopyType). Set this parameter to one of the following values.
For specifying the destination classification
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
ContextClassifierCNNPredefinedId |
Specifies the identifier of a predefined CNN classifier context (M_CLASSIFIER_CNN_PREDEFINED). |
||||||||||||||||||||||||||||||||||||||
ContextClassifierTreeEnsembleId |
Specifies the identifier of a tree ensemble classifier context (M_CLASSIFIER_TREE_ENSEMBLE). |
||||||||||||||||||||||||||||||||||||||
ContextDatasetFeaturesId |
Specifies the identifier of a features dataset context (M_DATASET_FEATURES). |
||||||||||||||||||||||||||||||||||||||
ContextDatasetImagesId |
Specifies the identifier of an images dataset context (M_DATASET_IMAGES). |
Specifies the type of copy operation to perform.
Specifies the type of copy operation
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEV_DATASET_PREDICT_SCORES |
Specifies to copy the predicted scores of the development dataset established by MclassTrain(). To perform this copy operation, you must set the SrcResultClassId parameter to the identifier of a CNN or tree ensemble training result buffer and the DstContextClassId parameter to the identifier of a features or images dataset context. If you used a tree ensemble classifier and did not specify a development dataset with MclassTrain(), nothing is copied. (summarize)Specifies to copy the predicted scores of the development dataset established by MclassTrain(). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_OUT_OF_BAG_PREDICT_SCORES |
Specifies to copy the predicted scores of the out-of-bag entries established by MclassTrain(). To perform this copy operation, you must set the SrcResultClassId parameter to the identifier of a tree ensemble training result buffer and the DstContextClassId parameter to the identifier of a features dataset context. Note, bagging information is typically unreliable if your training dataset has augmented entries. (summarize)Specifies to copy the predicted scores of the out-of-bag entries established by MclassTrain(). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAIN_DATASET_PREDICT_SCORES |
Specifies to copy the predicted scores of the training dataset established by MclassTrain(). To perform this copy operation, you must set the SrcResultClassId parameter to the identifier of a CNN or tree ensemble training result buffer and the DstContextClassId parameter to the identifier of a features or images dataset context. (summarize)Specifies to copy the predicted scores of the training dataset established by MclassTrain(). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAINED_CLASSIFIER_CNN |
Specifies to copy the trained CNN classifier context established by MclassTrain(). To perform this copy operation, you must set the SrcResultClassId parameter to the identifier of a CNN training result buffer and the DstContextClassId parameter to the identifier of a CNN classifier context. (summarize)Specifies to copy the trained CNN classifier context established by MclassTrain(). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAINED_TREE_ENSEMBLE |
Specifies to copy the trained tree ensemble classifier context established by MclassTrain(). To perform this copy operation, you must set the SrcResultClassId parameter to the identifier of a tree ensemble training result buffer and the DstContextClassId parameter to the identifier of a tree ensemble classifier context. (summarize)Specifies to copy the trained tree ensemble classifier context established by MclassTrain(). (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milclass.lib. |
DLL | Requires mil.dll; milclass.dll. |