src.hyperparameter_optimization package¶
Subpackages¶
Submodules¶
src.hyperparameter_optimization.apps module¶
src.hyperparameter_optimization.hyperopt_spaces module¶
hyperopt search spaces for each prediction method
src.hyperparameter_optimization.hyperopt_wrapper module¶
src.hyperparameter_optimization.methods_default_config module¶
-
src.hyperparameter_optimization.methods_default_config.hyperparameter_optimization_hyperopt()¶
src.hyperparameter_optimization.models module¶
-
class
src.hyperparameter_optimization.models.HyperOpt(id, optimization_method, hyperparameteroptimization_ptr, max_evaluations, performance_metric, algorithm_type)¶ Bases:
src.hyperparameter_optimization.models.HyperparameterOptimization-
exception
DoesNotExist¶ Bases:
src.hyperparameter_optimization.models.DoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
src.hyperparameter_optimization.models.MultipleObjectsReturned
-
algorithm_type¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_algorithm_type_display(*, field=<django.db.models.fields.CharField: algorithm_type>)¶
-
get_performance_metric_display(*, field=<django.db.models.fields.CharField: performance_metric>)¶
-
hyperparameteroptimization_ptr¶ Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.placeis aForwardOneToOneDescriptorinstance.
-
hyperparameteroptimization_ptr_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
max_evaluations¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
performance_metric¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
to_dict()¶
-
exception
-
class
src.hyperparameter_optimization.models.HyperOptAlgorithms¶ Bases:
enum.EnumAn enumeration.
-
RANDOM_SEARCH= 'random_search'¶
-
TPE= 'tpe'¶
-
-
class
src.hyperparameter_optimization.models.HyperOptLosses¶ Bases:
enum.EnumAn enumeration.
-
ACC= 'acc'¶
-
AUC= 'auc'¶
-
F1SCORE= 'f1score'¶
-
FALSE_NEGATIVE= 'false_negative'¶
-
FALSE_POSITIVE= 'false_positive'¶
-
MAE= 'mae'¶
-
MAPE= 'mape'¶
-
PRECISION= 'precision'¶
-
RECALL= 'recall'¶
-
RMSE= 'rmse'¶
-
RSCORE= 'rscore'¶
-
TRUE_NEGATIVE= 'true_negative'¶
-
TRUE_POSITIVE= 'true_positive'¶
-
-
class
src.hyperparameter_optimization.models.HyperparameterOptimization(id, optimization_method)¶ Bases:
src.common.models.CommonModel-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
get_optimization_method_display(*, field=<django.db.models.fields.CharField: optimization_method>)¶
-
hyperopt¶ Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurantis aReverseOneToOneDescriptorinstance.
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
static
init(configuration={'type': 'hyperopt'})¶
-
job_set¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
objects= <model_utils.managers.InheritanceManager object>¶
-
optimization_method¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception