immuneML.IO.ml_method package

Submodules

immuneML.IO.ml_method.MLExporter module

class immuneML.IO.ml_method.MLExporter.MLExporter[source]

Bases: object

static export(hp_item: immuneML.hyperparameter_optimization.states.HPItem.HPItem, path: pathlib.Path) pathlib.Path[source]
static export_zip(hp_item: immuneML.hyperparameter_optimization.states.HPItem.HPItem, path: pathlib.Path, label: str) str[source]

immuneML.IO.ml_method.MLImport module

class immuneML.IO.ml_method.MLImport.MLImport[source]

Bases: object

static import_encoder(config: immuneML.IO.ml_method.MLMethodConfiguration.MLMethodConfiguration, config_dir: pathlib.Path)[source]
static import_hp_setting(config_dir: pathlib.Path) Tuple[immuneML.hyperparameter_optimization.HPSetting.HPSetting, immuneML.environment.Label.Label][source]
static import_preprocessing_sequence(config: immuneML.IO.ml_method.MLMethodConfiguration.MLMethodConfiguration, config_dir) List[immuneML.preprocessing.Preprocessor.Preprocessor][source]

immuneML.IO.ml_method.MLMethodConfiguration module

class immuneML.IO.ml_method.MLMethodConfiguration.MLMethodConfiguration(labels_with_values: dict = None, encoding_name: str = None, encoding_class: str = None, encoding_parameters: dict = None, encoding_file: str = None, preprocessing_sequence_name: str = None, preprocessing_parameters: dict = None, preprocessing_file: str = None, ml_method: str = None, ml_method_name: str = None, train_dataset_id: str = None, train_dataset_name: str = None, software_used: str = None)[source]

Bases: object

encoding_class: str = None
encoding_file: str = None
encoding_name: str = None
encoding_parameters: dict = None
labels_with_values: dict = None
load(path: pathlib.Path)[source]
ml_method: str = None
ml_method_name: str = None
preprocessing_file: str = None
preprocessing_parameters: dict = None
preprocessing_sequence_name: str = None
software_used: str = None
store(path: pathlib.Path)[source]
train_dataset_id: str = None
train_dataset_name: str = None

immuneML.IO.ml_method.UtilIO module

class immuneML.IO.ml_method.UtilIO.UtilIO[source]

Bases: object

static export_comparison_data(comp_data: immuneML.pairwise_repertoire_comparison.ComparisonData.ComparisonData, path: pathlib.Path)[source]
static export_pairwise_comparison(pairwise_comparison: immuneML.pairwise_repertoire_comparison.PairwiseRepertoireComparison.PairwiseRepertoireComparison, path: pathlib.Path) pathlib.Path[source]
static import_comparison_data(path: pathlib.Path) immuneML.pairwise_repertoire_comparison.ComparisonData.ComparisonData[source]
static import_pairwise_comparison(path: pathlib.Path) immuneML.pairwise_repertoire_comparison.PairwiseRepertoireComparison.PairwiseRepertoireComparison[source]

Module contents