Fix CNN prediction threshold for binary classification#14902
Closed
ParikshitGupta2605 wants to merge 1 commit into
Closed
Fix CNN prediction threshold for binary classification#14902ParikshitGupta2605 wants to merge 1 commit into
ParikshitGupta2605 wants to merge 1 commit into
Annotations
2 errors
|
Run uvx ruff check --output-format=github .
Process completed with exit code 1.
|
|
Run uvx ruff check --output-format=github .:
computer_vision/cnn_classification.py#L99
computer_vision/cnn_classification.py:99:5: SIM108 Use ternary operator `prediction = "Normal" if result[0][0] < 0.5 else "Abnormality detected"` instead of `if`-`else`-block
help: Replace `if`-`else`-block with `prediction = "Normal" if result[0][0] < 0.5 else "Abnormality detected"`
|
background
wait
wait-all
cancel
parallel
Loading