revise machine learning pattern