forked from tdwojak/Python2017
Merge branch 'master' of https://git.wmi.amu.edu.pl/tdwojak/Python2017
# Conflicts: # labs02/test_task.py
This commit is contained in:
parent
8b57f5b1cf
commit
4197571375
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user