adding all work done so far (lessons 1 - 5)

This commit is contained in:
2019-07-10 19:58:53 +01:00
parent 8085149a49
commit b982957daf
37 changed files with 19407 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import pandas as pd
import numpy as np
from sklearn.linear_model import Lasso
train_data = pd.read_csv('data.csv', header=None)
X = train_data.iloc[:, :-1]
y = train_data.iloc[:, -1:]
lasso_reg = Lasso()
lasso_reg.fit(X, y)
reg_coef = lasso_reg.coef_
print(reg_coef)