4.2. copro.machine_learning.define_model

copro.machine_learning.define_model(config)[source]

Defines model based on model configurations. Model parameter were optimized beforehand using GridSearchCV.

Parameters

config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

Raises

ValueError – raised if a non-supported model is specified.

Returns

the specified model instance.

Return type

classifier