are you assuming that a tiny state school will have worse quality teachers than a top private school? or even that someone who is not a professional teacher is worse than a teacher at a "top" school?
The tiny state school might have the best machine learning class in the world.