src.predictive_model package

Submodules

src.predictive_model.apps module

class src.predictive_model.apps.PredictiveModelConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'src.predictive_model'

src.predictive_model.models module

class src.predictive_model.models.PredictiveModel(*args, **kwargs)

Bases: src.common.models.CommonModel

Container of Classification to be shown in frontend

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

classification

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 a ReverseOneToOneDescriptor instance.

get_predictive_model_display(*, field=<django.db.models.fields.CharField: predictive_model>)
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)
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 a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

model_path

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <model_utils.managers.InheritanceManager object>
prediction_method

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

predictive_model

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

regression

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 a ReverseOneToOneDescriptor instance.

timeseriesprediction

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 a ReverseOneToOneDescriptor instance.

to_dict()
class src.predictive_model.models.PredictiveModels

Bases: enum.Enum

An enumeration.

CLASSIFICATION = 'classification'
REGRESSION = 'regression'
TIME_SERIES_PREDICTION = 'time_series_prediction'

Module contents