The reality for me is simple. When music is written, it is usually categorized as classical. When it is improvised, it can still be called classical if it is an inspired improvisation. In either category, it is still music, and it can be good or bad or simply mediocre.