Any pythonic way to auto determine imbalance class problem, specially in multiclass scenario?
Depending on your dataset, I would say you can set the threshold yourself.
For example, a 50% split is a perfect balance so by definition any deviation away would be an imbalanced problem. That being said, this is quite typical, so it would make more sense to set your threshold to be somewhere around 80% imbalance or higher.
Count your classes and set a threshold, e.g.
threshold = 80
imbalance_measure = (minority_class/majority_class)*100
if imbalance_measure &gt;= threshold:
    print(&quot;Imbalanced problem&quot;)
else:
    print(&quot;Balanced problem&quot;)

In fact, if you data is suitable you can test this yourself through cross-validation
Some further relevant documents here