Predictor factory for classification predictor. More...
Inherits PredictorFactoryBaseEx.
Public Member Functions | |
ClassificationPredictorFactory (ClassificationType usageType) | |
Ctor. | |
void | UseSettingsFromPredictor (ClassificationPredictor clf) |
Copy the predictor generation settings from a predictor. | |
void | UseSettingsFromTestResult (ClassificationTestResult res) |
Copy the predictor generation settings from a test result. | |
ClassificationPredictor | TrainPredictor (SampleClassificationImageList sil) |
Create a classification predictor from a sample image list. | |
ClassificationPredictor | TrainPredictor (TrainingSet mts) |
Create a classification predictor from a Minos Training Set. | |
![]() | |
void | Dispose () |
Disposes of the native data needed for marshalling. | |
void | UseSettingsFromPredictor (PredictorBase clf) |
Copy the classifier generation settings from a classifier. | |
Properties | |
ClassificationType | Usage [get, set] |
Type of classification for which to generate the predictor. | |
![]() | |
InterpolationType | Interpolation [get, set] |
Interpolation setting to be used for generating this object. Using interpolation will generate less artifacts, but requires more processor time. | |
int | FeatureResolution [get, set] |
Feature resolution (determines the size of the classification retina. | |
![]() | |
double | Lambda [get, set] |
Regularization value to be used for generating the object. Possible values range from 0 to 10, good starting values for experiments are usually around 0.01. | |
string | Preprocessing [get, set] |
Preprocessing code with which the object is to be generated. | |
Additional Inherited Members | |
![]() | |
static string | FormatPreprocessingCode (string input) |
Correct a preprocessing code to make sure that no invalid characters are in the code and the code does not exceed the maximum length. | |
![]() | |
const InterpolationType | InterpolationDefault = InterpolationType.Linear |
Default value for interpolation. | |
![]() | |
static readonly ValueRange< double > | LambdaRange = new ValueRange<double>(0.0, 10.0) |
Acceptable scale factor range for search classifier training. | |
const double | LambdaDefault = 0.1 |
Default value for lambda. | |
const int | FeatureResolutionDefault = 1 |
Default value for feature resolution. | |
static readonly ValueRange< int > | FeatureResolutionRange = new ValueRange<int>(0, 10) |
Valid range of feature resolution value. | |
const int | PreprocessingMaxLength = InternalExtensions.PreprocessingMaxLength |
Maximum length of a preprocessing code (excluding the terminating zero). | |
const string | PreprocessingValidCharacters = InternalExtensions.PreprocessingValidCharacters |
characters that a preprocessing string may contain. | |
![]() | |
PredictorFactoryBase () | |
ctor (internal). | |
virtual void | Dispose (bool disposing) |
Clean-up of managed-to-native data structures. | |
virtual void | OnStartProgressReport (int id, string caption, int stepsTotal) |
Event raiser. | |
virtual void | OnProgressReport (int id, ref bool retval) |
Event raiser. | |
virtual void | OnEndProgressReport (int id) |
Event raiser. | |
![]() | |
EventHandler< StartProgressReportEventArgs > | StartProgressReport |
Event that will be fired when a new progress stage was initiated. | |
EventHandler< ProgressReportEventArgs > | ProgressReport |
Event that informs about a progress step in the given stage. | |
EventHandler< EndProgressReportEventArgs > | EndProgressReport |
Event that informs about the finalization of a given stage. | |
Predictor factory for classification predictor.
ClassificationPredictorFactory | ( | ClassificationType | usageType | ) |
Ctor.
usageType | The type of predictor to be generated. |
ClassificationPredictor TrainPredictor | ( | SampleClassificationImageList | sil | ) |
Create a classification predictor from a sample image list.
sil | Sample image list to train from. |
PolimagoFactoryException | Training error (usually due to unsuitable parameters). |
ClassificationPredictor TrainPredictor | ( | TrainingSet | mts | ) |
Create a classification predictor from a Minos Training Set.
mts | Sample image list to train from. |
PolimagoFactoryException | Training error (usually due to unsuitable parameters). |
void UseSettingsFromPredictor | ( | ClassificationPredictor | clf | ) |
Copy the predictor generation settings from a predictor.
clf | Classifier to take the settings from. |
void UseSettingsFromTestResult | ( | ClassificationTestResult | res | ) |
Copy the predictor generation settings from a test result.
res | Test result from which to adopt the training settings. |