simpleml.datasets.dataset_splits

Module for split transfer objects. Internal object to shuttle dataset slices between persistables

Module Contents

Classes

Split

Container class for splits

SplitContainer

Explicit instantiation of a defaultdict returning split objects

Attributes

__author__

simpleml.datasets.dataset_splits.__author__ = Elisha Yadgaran[source]
class simpleml.datasets.dataset_splits.Split[source]

Bases: dict

Container class for splits

Initialize self. See help(type(self)) for accurate signature.

__getattr__(self, attr)[source]

Default attribute processor (Used in combination with __getitem__ to enable ** syntax)

static is_null_type(obj)[source]

Helper to check for nulls - useful to not pass “empty” attributes so defaults of None will get returned downstream instead ex: **split -> all non null named params

Parameters

obj (Any) –

Return type

bool

squeeze(self)[source]

Helper method to clear up any null-type keys

class simpleml.datasets.dataset_splits.SplitContainer(default_factory=Split, **kwargs)[source]

Bases: collections.defaultdict

Explicit instantiation of a defaultdict returning split objects

Initialize self. See help(type(self)) for accurate signature.