machine learning script