From 419757137529cc3f7c961a8487a02d3d383d7b0e Mon Sep 17 00:00:00 2001 From: s45157 Date: Tue, 2 Jan 2018 15:52:55 +0100 Subject: [PATCH] Merge branch 'master' of https://git.wmi.amu.edu.pl/tdwojak/Python2017 # Conflicts: # labs02/test_task.py --- labs06/task02.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/labs06/task02.py b/labs06/task02.py index fdbedc8..b1ee890 100755 --- a/labs06/task02.py +++ b/labs06/task02.py @@ -93,27 +93,5 @@ def main(): predict(dane, 'SqrMeters') - from sklearn import datasets, linear_model - import numbers as np - from sklearn.metrics import mean_squared_error, r2_score - - - - - # - # diabetes = datasets.load_diabetes() - # diabetes_X = diabetes.data[:, None, 3] - # diabetes_X_train = diabetes_X[:-20] - # diabetes_X_test = diabetes_X[-20:] - # diabetes_y_train = diabetes.target[:-20] - # diabetes_y_test = diabetes.target[-20:] - # regr = linear_model.LinearRegression() - # regr.fit(diabetes_X_train, diabetes_y_train) - # diabetes_y_pred = regr.predict(diabetes_X_test) - # print('Coefficients: \n', regr.coef_) - # print('Mean squared error: %.2f' % mean_squared_error(diabetes_y_test, diabetes_y_pred)) - # - # print( diabetes.data[:, None, 3].shape ) - if __name__ == "__main__": main()