src.split package¶
Subpackages¶
Submodules¶
src.split.apps module¶
src.split.models module¶
-
class
src.split.models.
Split
(*args, **kwargs)¶ Bases:
src.common.models.CommonModel
Container of Split to be shown in frontend
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
additional_columns
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_splitting_method_display
(*, field=<django.db.models.fields.CharField: splitting_method>)¶
-
get_type_display
(*, field=<django.db.models.fields.CharField: type>)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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.
-
labelledlog_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.
-
loadedlog_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
= <django.db.models.manager.Manager object>¶
-
original_log
¶ 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 aForwardManyToOneDescriptor
instance.
-
original_log_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
splitting_method
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
test_log
¶ 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 aForwardManyToOneDescriptor
instance.
-
test_log_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
test_size
¶ 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
-
train_log
¶ 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 aForwardManyToOneDescriptor
instance.
-
train_log_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
src.split.serializers module¶
-
class
src.split.serializers.
CreateSplitSerializer
(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)¶ Bases:
rest_framework.serializers.ModelSerializer
-
class
Meta
¶ Bases:
object
-
fields
= ('original_log', 'splitting_method', 'test_size')¶
-
model
¶ alias of
src.split.models.Split
-
-
class
-
class
src.split.serializers.
SplitSerializer
(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)¶ Bases:
rest_framework.serializers.ModelSerializer
-
class
Meta
¶ Bases:
object
-
fields
= ('id', 'original_log', 'type', 'splitting_method', 'test_log', 'training_log', 'test_size')¶
-
model
¶ alias of
src.split.models.Split
-
-
get_training_log
(split)¶
-
class
src.split.splitting module¶
-
src.split.splitting.
prepare_logs
(split)¶ Returns training_log and test_log