Part of my work for the participation in the Datathon organized by Cajamar at the PyconES-2016-Almería
It's quite messy as it was done in a two nights rush.
It uses the WEKA java library in a Netbeans project
https://en.wikipedia.org/wiki/Weka_(machine_learning)
https://weka.wikispaces.com/Use+WEKA+in+your+Java+code
You can check the amazing work of the winners here