Business & farm

That makes sense.  So I'm assuming the IRS has zero problems with people switching back and forth between hobby/self-employment every 5 years?  What If I make $1 million 1 year, but lose money the other 4 years and that is my sole source of income?  Is that still considered a hobby?  Or if I have a "good" year, should I just automatically switch from hobby to self-employment.