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()