Source code for immuneML.workflows.instructions.subsampling.SubsamplingState

from dataclasses import dataclass, field
from pathlib import Path
from typing import List

from immuneML.IO.dataset_export.DataExporter import DataExporter
from immuneML.data_model.dataset.Dataset import Dataset


[docs]@dataclass class SubsamplingState: dataset: Dataset subsampled_dataset_sizes: List[int] = field(default_factory=list) dataset_exporters: List[DataExporter] = field(default_factory=list) result_path: Path = None name: str = None subsampled_datasets: List[Dataset] = field(default_factory=list) subsampled_dataset_paths: dict = field(default_factory=dict)