CVBpy 15.0
Loading...
Searching...
No Matches
ClassificationPredictorFactory Class Reference

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.
 
None use_settings_from_test_result (self, cvb.polimago.ClassificationTestResult res)
 Copy the predictor generation settings from a test result.
 
- Public Member Functions inherited from PredictorFactoryBaseEx
int interpolation_default ()
 Default value for interpolation.
 
- Public Member Functions inherited from PredictorFactoryBase
int feature_resolution_default ()
 Default value for feature resolution.
 
cvb.NumberRange feature_resolution_range ()
 Valid range of feature resolution value.
 
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.
 
float lambda_default ()
 Default value for lambda.
 
cvb.NumberRange lambda_range ()
 Acceptable scale factor range for search classifier training.
 
int preprocessing_max_length ()
 Maximum length of a preprocessing code (excluding the terminating zero).
 
List[str] preprocessing_valid_characters ()
 Characters that a preprocessing string may contain.
 

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).
 
- Properties inherited from PredictorFactoryBase
 lambda_ = property
 float: The regularization value to be used for generating the object.
 
 preprocessing = property
 str: Preprocessing code with which the object is to be generated.
 

Detailed Description

Factory class for classification predictors.

This is the constructor.

Parameters

usage_type : int The type of predictor to be generated (see cvb.polimago.ClassificationType).

Member Function Documentation

◆ use_settings_from_predictor()

None use_settings_from_predictor ( self,
cvb.polimago.ClassificationPredictor clf )

Copy the predictor generation settings from a predictor.

Parameters

clf : cvb.polimago.ClassificationPredictor Predictor to take the settings from.

◆ use_settings_from_test_result()

None use_settings_from_test_result ( self,
cvb.polimago.ClassificationTestResult res )

Copy the predictor generation settings from a test result.

Parameters

res : cvb.polimago.ClassificationTestResult Test result object from which to adopt the training settings.