immuneML.example_weighting.predefined_weighting package

Submodules

immuneML.example_weighting.predefined_weighting.PredefinedWeighting module

class immuneML.example_weighting.predefined_weighting.PredefinedWeighting.PredefinedWeighting(file_path, separator, name: str = None)[source]

Bases: ExampleWeightingStrategy

Example weighting strategy where weights are supplied in a file.

Specification arguments:

  • file_path (Path): Path to the example weights, should contain the columns ‘identifier’ and ‘example_weight’:

  • separator (str): Column separator in the input file.

static build_object(dataset=None, **params)[source]
compute_weights(dataset, params: ExampleWeightingParams)[source]

Module contents