src.cache package

Subpackages

Submodules

src.cache.apps module

class src.cache.apps.CacheConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'src.cache'

src.cache.cache module

src.cache.cache.dump_to_cache(path, obj, prefix='')
src.cache.cache.get_digested(candidate_path)
Return type:str
src.cache.cache.get_labelled_logs(job)
Return type:(<class ‘pandas.core.frame.DataFrame’>, <class ‘pandas.core.frame.DataFrame’>)
src.cache.cache.get_loaded_logs(split)
Return type:(<class ‘pandas.core.frame.DataFrame’>, <class ‘pandas.core.frame.DataFrame’>, <class ‘pandas.core.frame.DataFrame’>)
src.cache.cache.load_from_cache(path, prefix='')
src.cache.cache.put_labelled_logs(job, train_df, test_df)
src.cache.cache.put_loaded_logs(split, train_df, test_df, additional_columns)

src.cache.models module

class src.cache.models.Cache(id)

Bases: src.common.models.CommonModel

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

id

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

labelledlog

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.

loadedlog

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.

objects = <django.db.models.manager.Manager object>
class src.cache.models.LabelledLog(id, cache_ptr, train_log_path, test_log_path, split, encoding, labelling)

Bases: src.cache.models.Cache

exception DoesNotExist

Bases: src.cache.models.DoesNotExist

exception MultipleObjectsReturned

Bases: src.cache.models.MultipleObjectsReturned

cache_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 a ForwardOneToOneDescriptor instance.

cache_ptr_id

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

encoding

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

encoding_id

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

labelling

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

labelling_id

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

split

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

split_id

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

test_log_path

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

train_log_path

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

class src.cache.models.LoadedLog(id, cache_ptr, train_log_path, test_log_path, additional_columns_path, split)

Bases: src.cache.models.Cache

exception DoesNotExist

Bases: src.cache.models.DoesNotExist

exception MultipleObjectsReturned

Bases: src.cache.models.MultipleObjectsReturned

additional_columns_path

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

cache_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 a ForwardOneToOneDescriptor instance.

cache_ptr_id

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

split

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

split_id

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

test_log_path

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

train_log_path

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

Module contents