Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adjust classwise predictions shape for scoring
  • Loading branch information
PARTHDESHMUKH2005 authored Feb 15, 2026
commit 4e3e3418d31c04f54b1a90dc2a151ae77a7a1d97
1 change: 1 addition & 0 deletions modAL/multilabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def max_score(classifier: OneVsRestClassifier, X_pool: modALinput,

classwise_confidence = classifier.predict_proba(X_pool)
classwise_predictions = classifier.predict(X_pool)
classwise_predictions = classwise_predictions[:,None,:]
classwise_scores = classwise_confidence*(classwise_predictions - 1/2)
classwise_max = np.max(classwise_scores, axis=1)

Expand Down