All problems
Pseudo-Label Threshold
Problem
Count the samples that pass the pseudo-label confidence threshold.
Return the number of probabilities in probs that are greater than or equal to threshold.
Test cases
case 1
in: [[0.9,0.1,0.95,0.5,0.8],0.8]
expected: 3
case 2
in: [[0.1,0.2],0.5]
expected: 0
case 3
in: [[0.5],0.5]
expected: 1
Starter codePython
def pseudo_label_count(probs, threshold):
# Your code here
pass3 test cases · run your code against them in the editor