Machine learning from astronomical data