immuneML.encodings package

Subpackages

Submodules

immuneML.encodings.DatasetEncoder module

class immuneML.encodings.DatasetEncoder.DatasetEncoder[source]

Bases: object

YAML specification:

encodings:

e1: <encoder_class> # encoding without parameters

e2:
<encoder_class>: # encoding with parameters

parameter: value

abstract static build_object(dataset, **params)[source]
abstract encode(dataset, params: immuneML.encodings.EncoderParams.EncoderParams)[source]
static get_additional_files() List[str][source]
static load_attribute(encoder, encoder_file: pathlib.Path, attribute: str)[source]
static load_encoder(encoder_file: pathlib.Path)[source]
set_context(context: dict)[source]
store(encoded_dataset, params: immuneML.encodings.EncoderParams.EncoderParams)[source]
static store_encoder(encoder, encoder_file: pathlib.Path)[source]

immuneML.encodings.EncoderParams module

class immuneML.encodings.EncoderParams.EncoderParams(result_path: pathlib.Path, label_config: immuneML.environment.LabelConfiguration.LabelConfiguration, filename: str = '', pool_size: int = 4, model: dict = None, learn_model: bool = True, encode_labels: bool = True)[source]

Bases: object

encode_labels: bool = True
filename: str = ''
label_config: immuneML.environment.LabelConfiguration.LabelConfiguration
learn_model: bool = True
model: dict = None
pool_size: int = 4
result_path: pathlib.Path

Module contents