Label distribution

Let's see the class distribution. We will use the SQL interpreter for this. Just execute the following SQL query on the Zeppelin notebook:

%sql select y, count(1) from trainData group by y order by y>>>

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.