There's an excluded middle here.
The tiny state school might have the best machine learning class in the world.
My counter example would be the Algorithms course from Princeton with Robert Sedgewick. I would rate that as basically "just ok."
As a university teacher the most important thing you have to do is to pitch the level right. Anything that isn't a top-level school suffers from the tyranny of low expectations, and the cliff after the first 20-25 schools in the rankings is really quite steep. There are no public ivies.
Yet somehow the University of California at Berkeley has one of the 4 best computer science programs in the world, and it's better than all but 3 programs at private schools (Stanford, CMU and MIT).