.
start = time() model = Ridge(alpha=alpha, fit_intercept=False, random_state=42) pipe = Pipeline([ ('scaler', StandardScaler()), ('model', model)]) coeffs = [] for i, (train_idx, test_idx) in enumerate(cv.split(X), 1): X_train, y_train, = X.iloc[train_idx], y[target].iloc[train_idx] X_test, y_test =