oktoberfest.pr.DLomix.predict

DLomix.predict(data, dataset_name, keep_dataset=True)

Create predictions for dataset using Keras model.

Parameters:
  • data (Spectra) – spectral library to predict features for

  • dataset_name (str) – Name of the dataset for storing processed files for DLomix

  • keep_dataset (bool) – Whether to keep or discard the pre-processed dataset after inference

Return type:

dict[str, ndarray]

Returns:

a dictionary containing predicted features (key: feature type) and a mask of the ion annotations of the predicted feature matrix (key: ‘annotation’)