Hacker News new | ask | show | jobs
by praptak 6224 days ago
This would probably produce a program that cheats a lot. Perhaps not by simply hardcoding the answers to the tests, but by finding a good compressing function for the set of (input, output) pairs in the test. I bet this would seldom provide the expected answers on inputs not covered by the tests.
1 comments

I second this. Overfitting can be a problem even in human-written test scenario's. Usually overconfidence in your test suite is a cause.