Calculate probabilities with Sigmoid and record decisions at Threshold=.5.
Compare TP, FP, FN, TN, and Accuracy at Threshold=.3,.5,.7.
Results to retain
A probability/decision table and a Confusion Matrix for each Threshold.
Items to record and points to check
Threshold
TP
FP
FN
TN
Accuracy
Points to check
Did you avoid treating probabilities and final labels as the same values?
2. Choosing Which Errors to Reduce
Starting conditions
Choose one of the three Thresholds for a sensor alarm scenario that prioritizes reducing missed detections (FN).
Procedure
Reuse the TP, FP, FN, TN, and Accuracy table for each threshold from the previous activity. Use the same logits and labels.
Find the Threshold candidates with the fewest FNs. If candidates tie, compare their FPs, select one value, and record the FN and FP counts supporting your choice.
Compare the decisions from your selected value and Threshold 0.5 for each sample, and explain which samples have different alarms.
Results to retain
The selected Threshold and the reason for choosing it based on FN and FP.
Items to record and points to check
Threshold
FN
FP
Selected value and reasoning
Points to check
If candidates tied, did you record the reason for your choice?
3. Checking Other Inputs
Starting conditions
Compare a model that always predicts 0 on 100 synthetic Labels, 10% of which are Class 1.
Procedure
Create a Label array with 10 Class 1 samples and 90 Class 0 samples, and a prediction array filled with 0.
Before running the code, calculate TP, FP, FN, TN, and Accuracy. Calculate the same values in code and compare them. Also record the number of missed Class 1 samples.
Even if accuracy is high, can you conclude that the model reduces missed detections? Explain using your recorded FN.
Results to retain
Expected and actual Confusion counts, and interpretation of Accuracy and missed detections.
Items to record and points to check
TP, FP, FN, TN before running
Actual TP, FP, FN, and TN
Accuracy
Missed Class 1 count and interpretation
Points to check
Did you distinguish overall Accuracy from the number of missed Class 1 samples?