src.cache package¶
Subpackages¶
Submodules¶
src.cache.apps module¶
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.restaurantis aReverseOneToOneDescriptorinstance.
-
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.restaurantis aReverseOneToOneDescriptorinstance.
-
objects= <django.db.models.manager.Manager object>¶
-
exception
-
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.placeis aForwardOneToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.
-
exception
-
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.placeis aForwardOneToOneDescriptorinstance.
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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.
-
exception