Scikit-learn estimator API
Every sklearn model is .fit(X, y).predict(X_test) — the canonical 'data, model, learning' triad realized as a Python interface. Pipelines compose preprocessing + estimator into one fittable object.
from sklearn.linear_model import Ridge
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
model = make_pipeline(StandardScaler(), Ridge(alpha=1.0))
model.fit(X_train, y_train)
print(model.score(X_test, y_test))