From e9dbc94ca426169a785f364b43dc27d3d9196228 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Fri, 9 Dec 2016 13:36:22 -0500 Subject: [PATCH] Final Results --- Default Prediction.ipynb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Default Prediction.ipynb b/Default Prediction.ipynb index bbd5d42..60d91b7 100644 --- a/Default Prediction.ipynb +++ b/Default Prediction.ipynb @@ -844,7 +844,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Test accuracy: 93.651%\n" + "Model test accuracy: 93.651%\n", + "Naive test accuracy: 89.952%\n" ] } ], @@ -859,7 +860,11 @@ " rf = pickle.load(handle)\n", " score = rf.score(test_x, test_y)\n", " \n", - " print 'Test accuracy: {:.3f}%'.format(score*100)" + " print 'Model test accuracy: {:.3f}%'.format(score*100)\n", + " \n", + "print 'Naive test accuracy: {:.3f}%'.format(\n", + " (1 - test_y.mean())*100\n", + ")" ] } ],