Skip to content

Commit

Permalink
Finalization of exercise and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jandegen committed May 12, 2021
1 parent 2d6b4d3 commit 3b3ca9b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Binary file modified SAKI Homework Template.docx
Binary file not shown.
30 changes: 15 additions & 15 deletions gaussian_nb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 273,
"execution_count": 2,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -91,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 274,
"execution_count": 3,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -126,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 275,
"execution_count": 4,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -192,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 276,
"execution_count": 5,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -319,7 +319,7 @@
},
{
"cell_type": "code",
"execution_count": 277,
"execution_count": 6,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -433,7 +433,7 @@
},
{
"cell_type": "code",
"execution_count": 278,
"execution_count": 7,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -472,13 +472,13 @@
},
{
"cell_type": "code",
"execution_count": 279,
"execution_count": 8,
"outputs": [
{
"data": {
"text/plain": "GaussianNB()"
},
"execution_count": 279,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -509,14 +509,14 @@
},
{
"cell_type": "code",
"execution_count": 285,
"execution_count": 9,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy: 0.9285714285714286\n",
"Null Accuracy: 0.2857142857142857\n",
"Null Accuracy: 0.2619047619047619\n",
"\n",
"\n",
"Classification Report: \n",
Expand Down Expand Up @@ -545,7 +545,7 @@
"test_prediction = gnb_model.predict(test_data)\n",
"\n",
"accuracy = metrics.accuracy_score(test_labels,test_prediction)\n",
"null_accuracy =12/len(test_labels)\n",
"null_accuracy =11/len(test_labels)\n",
"\n",
"print(\"Accuracy: \", accuracy)\n",
"print(\"Null Accuracy: \", null_accuracy)\n",
Expand Down Expand Up @@ -576,7 +576,7 @@
},
{
"cell_type": "code",
"execution_count": 281,
"execution_count": 10,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -636,7 +636,7 @@
},
{
"cell_type": "code",
"execution_count": 282,
"execution_count": 11,
"outputs": [
{
"data": {
Expand Down Expand Up @@ -671,7 +671,7 @@
},
{
"cell_type": "code",
"execution_count": 283,
"execution_count": 12,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -713,7 +713,7 @@
},
{
"cell_type": "code",
"execution_count": 284,
"execution_count": 13,
"outputs": [
{
"data": {
Expand Down

0 comments on commit 3b3ca9b

Please sign in to comment.