Final Results

master
Bradlee Speice 2016-12-09 13:36:22 -05:00
vanhempi 33cab72368
commit e9dbc94ca4
1 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa

Näytä tiedosto

@ -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",
")"
]
}
],