src.evaluation package¶
Subpackages¶
Submodules¶
src.evaluation.apps module¶
src.evaluation.models module¶
-
class
src.evaluation.models.
BinaryClassificationMetrics
(id, elapsed_time, evaluation_ptr, f1_score, accuracy, precision, recall, classificationmetrics_ptr, true_positive, true_negative, false_negative, false_positive, auc)¶ Bases:
src.evaluation.models.ClassificationMetrics
-
exception
DoesNotExist
¶ Bases:
src.evaluation.models.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
src.evaluation.models.MultipleObjectsReturned
-
auc
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
classificationmetrics_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.place
is aForwardOneToOneDescriptor
instance.
-
classificationmetrics_ptr_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
false_negative
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
false_positive
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
to_dict
()¶ Return type: dict
-
true_negative
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
true_positive
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
src.evaluation.models.
ClassificationMetrics
(id, elapsed_time, evaluation_ptr, f1_score, accuracy, precision, recall)¶ Bases:
src.evaluation.models.Evaluation
-
exception
DoesNotExist
¶ Bases:
src.evaluation.models.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
src.evaluation.models.MultipleObjectsReturned
-
accuracy
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
binaryclassificationmetrics
¶ 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.restaurant
is aReverseOneToOneDescriptor
instance.
-
evaluation_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.place
is aForwardOneToOneDescriptor
instance.
-
evaluation_ptr_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
f1_score
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
multiclassclassificationmetrics
¶ 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.restaurant
is aReverseOneToOneDescriptor
instance.
-
precision
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
recall
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
to_dict
()¶ Return type: dict
-
exception
-
class
src.evaluation.models.
Evaluation
(id, elapsed_time)¶ Bases:
src.common.models.CommonModel
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
classificationmetrics
¶ 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.restaurant
is aReverseOneToOneDescriptor
instance.
-
elapsed_time
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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
(prediction_type, results, binary=False)¶
-
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.children
is aReverseManyToOneDescriptor
instance.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>¶
-
regressionmetrics
¶ 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.restaurant
is aReverseOneToOneDescriptor
instance.
-
timeseriespredictionmetrics
¶ 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.restaurant
is aReverseOneToOneDescriptor
instance.
-
to_dict
()¶ Return type: dict
-
exception
-
class
src.evaluation.models.
MulticlassClassificationMetrics
(id, elapsed_time, evaluation_ptr, f1_score, accuracy, precision, recall, classificationmetrics_ptr)¶ Bases:
src.evaluation.models.ClassificationMetrics
-
exception
DoesNotExist
¶ Bases:
src.evaluation.models.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
src.evaluation.models.MultipleObjectsReturned
-
classificationmetrics_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.place
is aForwardOneToOneDescriptor
instance.
-
classificationmetrics_ptr_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
src.evaluation.models.
RegressionMetrics
(id, elapsed_time, evaluation_ptr, rmse, mae, rscore, mape)¶ Bases:
src.evaluation.models.Evaluation
-
exception
DoesNotExist
¶ Bases:
src.evaluation.models.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
src.evaluation.models.MultipleObjectsReturned
-
evaluation_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.place
is aForwardOneToOneDescriptor
instance.
-
evaluation_ptr_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
mae
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
mape
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
rmse
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
rscore
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
to_dict
()¶ Return type: dict
-
exception
-
class
src.evaluation.models.
TimeSeriesPredictionMetrics
(id, elapsed_time, evaluation_ptr, nlevenshtein)¶ Bases:
src.evaluation.models.Evaluation
-
exception
DoesNotExist
¶ Bases:
src.evaluation.models.DoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
src.evaluation.models.MultipleObjectsReturned
-
evaluation_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.place
is aForwardOneToOneDescriptor
instance.
-
evaluation_ptr_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
nlevenshtein
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
to_dict
()¶ Return type: dict
-
exception