immuneML.workflows.steps.data_splitter package

Submodules

immuneML.workflows.steps.data_splitter.DataSplitter module

class immuneML.workflows.steps.data_splitter.DataSplitter.DataSplitter[source]

Bases: Step

static k_fold_split(input_params: DataSplitterParams)[source]
static leave_one_out_stratification_split(input_params: DataSplitterParams)[source]
static loocv_split(input_params: DataSplitterParams)[source]
static manual_split(input_params: DataSplitterParams)[source]
static random_split(input_params: DataSplitterParams)[source]
static run(input_params: DataSplitterParams = None)[source]
static stratified_k_fold_split(input_params: DataSplitterParams)[source]

immuneML.workflows.steps.data_splitter.DataSplitterParams module

class immuneML.workflows.steps.data_splitter.DataSplitterParams.DataSplitterParams(dataset: immuneML.data_model.dataset.Dataset.Dataset, split_strategy: immuneML.hyperparameter_optimization.config.SplitType.SplitType, split_count: int, training_percentage: float = -1, paths: list = None, split_config: immuneML.hyperparameter_optimization.config.SplitConfig.SplitConfig = None, label_config: immuneML.environment.LabelConfiguration.LabelConfiguration = None)[source]

Bases: StepParams

dataset: Dataset
label_config: LabelConfiguration = None
paths: list = None
split_config: SplitConfig = None
split_count: int
split_strategy: SplitType
training_percentage: float = -1

immuneML.workflows.steps.data_splitter.LeaveOneOutSplitter module

class immuneML.workflows.steps.data_splitter.LeaveOneOutSplitter.LeaveOneOutSplitter[source]

Bases: object

static split_dataset(input_params: DataSplitterParams)[source]

immuneML.workflows.steps.data_splitter.ManualSplitter module

class immuneML.workflows.steps.data_splitter.ManualSplitter.ManualSplitter[source]

Bases: object

static split_dataset(input_params: DataSplitterParams)[source]

immuneML.workflows.steps.data_splitter.Util module

class immuneML.workflows.steps.data_splitter.Util.Util[source]

Bases: object

static make_dataset(dataset: Dataset, indices, input_params: DataSplitterParams, i: int, dataset_type: str)[source]
static prepare_path(input_params: DataSplitterParams, split_index: int) str[source]

Module contents