mirror of
https://github.com/bspeice/kiva-dig
synced 2024-12-04 20:58:09 -05:00
Final Results
This commit is contained in:
parent
33cab72368
commit
e9dbc94ca4
@ -844,7 +844,8 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"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",
|
" rf = pickle.load(handle)\n",
|
||||||
" score = rf.score(test_x, test_y)\n",
|
" score = rf.score(test_x, test_y)\n",
|
||||||
" \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",
|
||||||
|
")"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user