Previous outcome distribution

What about the previous outcome and its correlation with the subscription decision:

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

The distribution shows that clients with a successful outcome from the previous marketing campaign will most likely subscribe. At the same time, those clients represent the minority of the dataset.

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.