.
f'target_{lookahead}d' scaler = StandardScaler() X = X.drop([c for c in X.columns if 'year' in c], axis=1) lasso_coeffs, lasso_scores, lasso_predictions = {}, [], [] for alpha in lasso_alphas: print(alpha, end=' ', flush=True) model = Lasso(alpha=alpha, fit_intercept=False, # StandardScaler centers