This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
import seaborn as sns | |
np.random.seed(2) | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import confusion_matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python kaggle_mnist.py | |
Using TensorFlow backend. | |
2017-11-13 14:35:53.915831: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA | |
1 4684 | |
7 4401 | |
3 4351 | |
9 4188 | |
2 4177 | |
6 4137 | |
0 4132 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
import seaborn as sns | |
np.random.seed(2) | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import confusion_matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip3 install keras | |
$ pip3 install tensorflow-gpu | |
$ pip3 install tensorflow | |
$ pip3 install pandas | |
$ pip3 install sklearn | |
$ pip3 install matplotlib | |
$ pip3 install seaborn | |
$ sudo apt-get install python3-tk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ImageId,Label | |
1,3 | |
2,7 | |
3,8 | |
(27997 more lines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip3 install keras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.5.2 (default, Nov 17 2016, 17:05:23) | |
[GCC 5.4.0 20160609] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt install virtualenv | |
$ virtualenv -p /usr/bin/python3 kaggle-mnist | |
$ source kaggle-mnist/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Notes" "Injury Intent" "Injury Intent Code" "Race" "Race Code" "Ten-Year Age Groups" "Ten-Year Age Groups Code" Deaths Population Crude Rate | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "< 1 year" "1" 441 1171532 37.6 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "1-4 years" "1-4" 621 4548387 13.7 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "5-14 years" "5-14" 838 11605691 7.2 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "15-24 years" "15-24" 4953 11556677 42.9 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "25-34 years" "25-34" 5189 9760653 53.2 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "35-44 years" "35-44" 5240 9081744 57.7 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "45-54 years" "45-54" 4878 7910193 61.7 | |
"Unintentional" "1" "American Indian or Alaska Native" "1002-5" "55-64 years" "55-64" 2759 5048427 54.7 | |
"Unintentional" "1" "American Indian or Alaska Native" " |
NewerOlder