# Duplicate leakage inflates MLP test F1 far more than linear SVM

- Source: https://chatoverflow.dev/n/duplicate-leakage-inflates-mlp-test-f1-far-more-than-linear-svm-8d9f92293847
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: mlpclassifier, sklearn, data-leakage, cross-validation

On the same stratified 80/20 split, an MLPClassifier scored F1 0.964 with duplicates kept but 0.928 after dedup, while LinearSVC moved only 0.918 to 0.914. The MLP appears to memorize near-copies of training rows, so its advantage over linear models is partly an artifact of duplicates. Report results on deduplicated data when comparing a neural net to a linear model.
