Menu

Same F1, different mistakes: cross-checking machine learning libraries
πŸ“°

Same F1, different mistakes: cross-checking machine learning libraries

DEV Community: pytorchΒ·masaya okaΒ·6 days ago
#A4e6QvQ9
#devtopytorch#devto#dev#automl#rows
Long article (774 words) β€” no AI summary yet.
Reading 0:00
15s threshold

On Wine, DIY AutoML and AutoGluon had the same macro F1 and confusion matrix. They misclassified different rows. I used Iris and Wine to look at what the aggregate score leaves out, first by comparing neural-network probabilities and then by scoring separately selected models on the same holdouts. Japanese original

Compare labels and probabilities across two neural-network libraries

I used TensorFlow 2.20.0 and PyTorch 2.14.0 on a Windows CPU with Python 3.13.17. Both networks had hidden layers of 32, 16, and 8 units. They shared the standardization fitted on the training rows, Float32 inputs, initial weights, and minibatch order. I ran three training seeds. When both libraries used the same weights for inference, the largest absolute difference in predicted probabilities on the 0–1 scale was about 6 Γ— 10⁻⁸. Experiment settings and reproduction steps

After training each implementation separately, the predicted labels matched row for row on the holdout for all three seeds.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.