predict_proba¶
- besca.tl.auto_annot.predict_proba(classifier, scaler, adata_pred, threshold=0)[source]¶
predicts on testing set using trained classifier and returns probabilities
- Parameters:
classifier (sklearn object) – trained classifier of chosen type
scaler (sklearn.preprocessing.StandardScaler) – scaler fit to training dataset
adata_pred (AnnData) – Preprocessed anndata object containing testing dataset.
threshold (float | default = 0) – value between 0 and 1, used for classifying into unknowns
- Returns:
np.array – array of most likely class label for every cell
np.array – array of all probabilities of all cell types