Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c516006

Browse files
committed
remove of unsqueece
1 parent 61442b6 commit c516006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modAL/dropout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def get_predictions(classifier: BaseEstimator, X: modALinput, dropout_layer_inde
318318
logits = classifier.estimator.infer(samples)
319319
prediction = logits_adaptor(logits, samples)
320320
mask = ~prediction.isnan()
321-
prediction[mask] = prediction[mask].unsqueeze(0).softmax(1)
321+
prediction[mask] = prediction[mask].softmax(1)
322322
probas.append(prediction)
323323

324324
probas = torch.cat(probas)

0 commit comments

Comments
 (0)