From c781418f2b1904b79237e462c270bbcaaf9292d6 Mon Sep 17 00:00:00 2001 From: andrzej Date: Mon, 11 May 2020 13:45:21 +0200 Subject: [PATCH] Poprawka --- package_location_classifier/classifier.py | 1 - 1 file changed, 1 deletion(-) diff --git a/package_location_classifier/classifier.py b/package_location_classifier/classifier.py index 6ade99b..060425c 100644 --- a/package_location_classifier/classifier.py +++ b/package_location_classifier/classifier.py @@ -49,7 +49,6 @@ class PackageLocationClassifier(): evaluation = pd.DataFrame({'category': testset.category, 'temperature': testset.temperature , 'humid': testset.humidity ,'Actual': test_y, 'Predicted': y_pred}) evaluation = evaluation.round({'Actual': 3, 'Predicted': 3}) evaluation['Prediction_diff'] = abs(evaluation['Actual'] - evaluation['Predicted']) - evaluation.to_excel("Test_resultsv2.xlsx") print("Prediction differs from actual value by average {}".format(round(evaluation['Prediction_diff'].mean(), 2))) # export_graphviz(clf, out_file=data, filled=True, rounded=True, special_characters=True, feature_names=dummies_names) # graph = pydotplus.graph_from_dot_data(data.getvalue())