Yoga unlike gym does not need any instrument (use of props is minimal) to work with.
The only and main advantage of yoga class is that, instructions by teacher keep you engaged into practice especially when other people are around without getting engaged with other people.
If we are talking about self solo practice as per own schedule then I would say that the same person can practice at home as well.
Like a yoga club.
Yoga practice loses essence if It becomes club. People will end up in talking and clubbing, rather than practicing just because yoga practice does not depend on any instrument and keeping engaged ( with content) with self is biggest hindrance people find in life. Yoga and clubbing are opposite poles. Indirectly, presence of teacher prevents that clubbing to happen.