Will my group class be held if there are only 1-2 students registered in swimming lessons?

That is a decision left to each swimming location. Often the location manager will try to consolidate some classes so that they have at least a few students in them.