Machine learning method