MIL_ID ContextClassId, | //in |
MIL_INT64 ControlFlag | //in |
This function prepares a classification context for training (MclassTrain()) or prediction (MclassPredict()). During preprocessing, for M_CLASSIFIER_CNN_PREDEFINED and M_CLASSIFIER_TREE_ENSEMBLE contexts, MIL compiles and analyzes the content of the context and makes internal refinements to execute an optimized and robust operation. You must call MclassPreprocess() before the first call to MclassPredict().
For M_TRAIN_CNN and M_TRAIN_TREE_ENSEMBLE, you must call MclassPreprocess() before the first call to MclassTrain().
Changes to a context or any of its content often require preprocessing the context again. To inquire whether you should preprocess the context, call MclassInquire() with M_PREPROCESSED. The context must be in a preprocessed state before calling the training or prediction operation.
Saving a context does not save preprocessing changes. Upon restoration, you must preprocess the context again before calling MclassPredict() or MclassTrain().
Specifies the identifier of the classification context to preprocess. The classification context must have been previously allocated on the required system using MclassAlloc() with M_TRAIN_CNN, M_TRAIN_TREE_ENSEMBLE, M_CLASSIFIER_TREE_ENSEMBLE, or M_CLASSIFIER_TREE_ENSEMBLE.
Specifies whether to preprocess the classification context. Set this parameter to one of the following values:
For specifying whether to preprocess the
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Preprocesses the context. |
||||||||||||||||||||||||||||||||||||||
M_RESET |
Un-preprocesses the context. Un-preprocessing the context can be useful if you want to conserve system memory within an application and preserve context settings. (summarize)Un-preprocesses the context. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milclass.lib. |
DLL | Requires mil.dll; milclass.dll. |