src.split package

Subpackages

Submodules

src.split.apps module

class src.split.apps.SplitConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'src.split'

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 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.

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 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.

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 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.

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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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 a ForwardManyToOneDescriptor 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.

class src.split.models.SplitOrderingMethods

Bases: enum.Enum

An enumeration.

SPLIT_RANDOM = 'random'
SPLIT_SEQUENTIAL = 'sequential'
SPLIT_STRICT_TEMPORAL = 'strict_temporal'
SPLIT_TEMPORAL = 'temporal'
class src.split.models.SplitTypes

Bases: enum.Enum

An enumeration.

SPLIT_DOUBLE = 'double'
SPLIT_SINGLE = 'single'

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 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)

src.split.splitting module

src.split.splitting.prepare_logs(split)

Returns training_log and test_log

src.split.urls module

src.split.views module

class src.split.views.SplitList(**kwargs)

Bases: rest_framework.mixins.ListModelMixin, rest_framework.generics.GenericAPIView

get(request, *args, **kwargs)
static post(request)
queryset
serializer_class

alias of src.split.serializers.SplitSerializer

Module contents