Machine learning and data mining often employ the same methods and overlap significantly , but while machine learning focuses on prediction , based on known properties learned from the training data , data mining focuses on the discovery of ( previously ) unknown properties in the data ( this is the analysis step of knowledge discovery in databases ) .