Hacking
Develop/Machine_Learning
[Machine_learning]Elastic Net regression
코드 import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error from sklearn.linear_model import ElasticNet, ElasticNetCV import numpy as np # Load the dataset and preprocess data = pd.read_csv('c:/users/hjhjhj/desktop/shell.csv') data['STATUS_BINARY'] = data['STATUS_CONF'].apply(lambda x: 1 if x == "validated" else 0) data_dummies = pd...
Develop/Machine_Learning
[Machine_Learning]OLS, Ridge, Lasso regression code
Dataset OLS.py Ridge.py Lasso.py