Skip to content

Commit

Permalink
Update _onclass.py to work in fast mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
canergen authored Jul 25, 2024
1 parent e52a229 commit 693220a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popv/algorithms/_onclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def predict(self, adata):
pred_label = [train_model.i2co[ind] for ind in onclass_seen]
pred_label_str = [clid_2_name[ind] for ind in pred_label]
adata.obs[self.result_key] = pred_label_str
adata.obs["onclass_seen"] = pred_label_str
adata.obs[self.seen_result_key] = pred_label_str
else:
onclass_pred = train_model.Predict(corr_test_feature, use_normalize=False, refine=True, unseen_ratio=-1.0)
pred_label = [train_model.i2co[ind] for ind in onclass_pred[2]]
Expand Down

0 comments on commit 693220a

Please sign in to comment.