Machine learning for scientific data mining and solar eruption prediction