Back to Course
Machine Learning: The Engineering Approach
Module 14 of 14
14. Scikit-Learn Cheatsheet
API Standard
pythonmodel = Model() model.fit(X_train, y_train) pred = model.predict(X_test)
Metrics
pythonaccuracy_score(y_true, y_pred) mean_squared_error(y_true, y_pred)
Deployment
pythonjoblib.dump(model, "m.pkl") model = joblib.load("m.pkl")