Multiclass F1 comes in two flavours that quietly disagree with each other the moment classes are imbalanced, and the most common bug is averaging the wrong things before combining them.
Write multiclass_f1(confusion). Given a (C, C) confusion matrix — rows are true classes, columns are predicted classes, exactly the convention a confusion matrix always uses — return (macro_f1, micro_f1).
As always, a zero denominator anywhere gives 0.0, never nan.
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