A fraud model outputs a probability. Somebody has to decide where to cut, and 0.5 is almost never the right answer.
Given y_true (0/1) and y_score (predicted probabilities), return the threshold that maximises F1.
Rules:
score >= thresholdAt 0.3% positives, accuracy is useless: a model that predicts "never fraud" scores 99.7%. F1 is what forces the trade between missing fraud and drowning the review team.
Build the architecture on a canvas: place the components, configure them, connect them into a data flow, and write a short reason for each one. The AI reviewer grades your design against a rubric written specifically for this problem.
Minimum 5 components · needs a wide desktop screen