immuneML.dev_util package
Submodules
immuneML.dev_util.util module
- immuneML.dev_util.util.load_encoded_data(labels_path: str, encoding_details_path: str, design_matrix_path: str) immuneML.data_model.encoded_data.EncodedData.EncodedData [source]
Utility function for adding ML methods; if one encodes data using immuneML through YAML specification and exports the encoded data using DesignMatrixExporter, this function can be used to import the data and return it in the format it would be available if the ML method was called from within immuneML
- Parameters
labels_path (str) – path to labels file as exported by the DesignMatrixExporter
encoding_details_path (str) – path to the details file, where example_ids, feature_names and the encoding name will be imported from
design_matrix_path (str) – path to csv or npy file where the design matrix is stored
- Returns
EncodedData object as it would be provided to an ML method within immuneML