1
0
forked from tdwojak/Python2017
# Conflicts:
    #	labs02/test_task.py
This commit is contained in:
s45157 2018-01-02 15:54:46 +01:00
parent 4197571375
commit e20007b2df

View File

@ -43,8 +43,6 @@ def predict(dane, col_name):
from sklearn import linear_model from sklearn import linear_model
from sklearn.metrics import mean_squared_error, r2_score from sklearn.metrics import mean_squared_error, r2_score
d_X = pd.DataFrame(dane[col_name]) d_X = pd.DataFrame(dane[col_name])
print('Dane z kolumny ', col_name)
print(d_X.head())
d_X_train = d_X[4000:] d_X_train = d_X[4000:]
d_X_test = d_X[:4000] d_X_test = d_X[:4000]
d_y = pd.DataFrame(dane['Expected']) d_y = pd.DataFrame(dane['Expected'])