Factory class for classification predictors. More...
Inherits PredictorFactoryBaseEx.
Public Member Functions | |
None | use_settings_from_predictor (self, cvb.polimago.ClassificationPredictor clf) |
Copy the predictor generation settings from a predictor. More... | |
None | use_settings_from_test_result (self, cvb.polimago.ClassificationTestResult res) |
Copy the predictor generation settings from a test result. More... | |
Public Member Functions inherited from PredictorFactoryBaseEx | |
int | interpolation_default () |
Default value for interpolation. More... | |
Public Member Functions inherited from PredictorFactoryBase | |
int | feature_resolution_default () |
Default value for feature resolution. More... | |
cvb.NumberRange | feature_resolution_range () |
Valid range of feature resolution value. More... | |
str | format_preprocessing_code (str 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. More... | |
float | lambda_default () |
Default value for lambda. More... | |
cvb.NumberRange | lambda_range () |
Acceptable scale factor range for search classifier training. More... | |
int | preprocessing_max_length () |
Maximum length of a preprocessing code (excluding the terminating zero). More... | |
List[str] | preprocessing_valid_characters () |
Characters that a preprocessing string may contain. More... | |
Properties | |
usage = property | |
int: The type of classification for which to generate the predictor (see cvb.polimago.ClassificationType). | |
Properties inherited from PredictorFactoryBaseEx | |
feature_resolution = property | |
int: The feature resolution (determines the size of the classification retina). | |
interpolation = property | |
int: The interpolation setting to be used for generating this object (see cvb.polimago.InterpolationType). More... | |
Properties inherited from PredictorFactoryBase | |
lambda_ = property | |
float: The regularization value to be used for generating the object. More... | |
preprocessing = property | |
str: Preprocessing code with which the object is to be generated. | |
Factory class for classification predictors.
This is the constructor.
usage_type : int The type of predictor to be generated (see cvb.polimago.ClassificationType).
None use_settings_from_predictor | ( | self, | |
cvb.polimago.ClassificationPredictor | clf | ||
) |
Copy the predictor generation settings from a predictor.
clf : cvb.polimago.ClassificationPredictor Predictor to take the settings from.
None use_settings_from_test_result | ( | self, | |
cvb.polimago.ClassificationTestResult | res | ||
) |
Copy the predictor generation settings from a test result.
res : cvb.polimago.ClassificationTestResult Test result object from which to adopt the training settings.