Lasso Regression, Ridge Regression, L1 Regularization, L2 Regularization.
train_test_split(X, y, test_size=0.2, random_state=42) # Standardize the features (important for regularization) X_train /= X_train.std(axis=0) X_test /= X_test.std(axis=0) # Initialize Lasso and Ridge models lasso_model = Lasso(alpha=0.1) # Adjust alpha as needed ridge_model = Ridge(alpha=0.1) #