CVBpy 14.0
PredictorFactoryBase Class Reference

Base class for classifier factory classes. More...

Inherits object.

Inherited by PredictorFactoryBaseEx, and SearchPredictorFactory.

Public Member Functions

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

 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.
 

Detailed Description

Base class for classifier factory classes.

Member Function Documentation

◆ feature_resolution_default()

int feature_resolution_default ( )

Default value for feature resolution.

Returns

int Feature resolution default.

◆ feature_resolution_range()

cvb.NumberRange feature_resolution_range ( )

Valid range of feature resolution value.

Returns

cvb.NumberRange Feature resolution range.

◆ format_preprocessing_code()

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.

Parameters

input : str String to be corrected.

Returns

str Corrected string.

◆ lambda_default()

float lambda_default ( )

Default value for lambda.

Returns

float Lambda default.

◆ lambda_range()

cvb.NumberRange lambda_range ( )

Acceptable scale factor range for search classifier training.

Returns

cvb.NumberRange Lambda range.

◆ preprocessing_max_length()

int preprocessing_max_length ( )

Maximum length of a preprocessing code (excluding the terminating zero).

Returns

int Maximum length.

◆ preprocessing_valid_characters()

List[str] preprocessing_valid_characters ( )

Characters that a preprocessing string may contain.

Returns

List[str] Valid characters.

Property Documentation

◆ lambda_

lambda_ = property
static

float: The 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.