Skip to content

Instantly share code, notes, and snippets.

View ECHO-ECHOOooo's full-sized avatar

David Calloway ECHO-ECHOOooo

  • Retired
  • Daytona Beach, FL and Nathrop, CO
View GitHub Profile
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
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
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
$ 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
ImageId,Label
1,3
2,7
3,8
(27997 more lines)
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.
>>>
@ECHO-ECHOOooo
ECHO-ECHOOooo / gist:c6bf3d216f5f93409219f7526f942f6b
Created November 13, 2017 18:27
Install Kaggle-MNIST Virtualenv
$ sudo apt install virtualenv
$ virtualenv -p /usr/bin/python3 kaggle-mnist
$ source kaggle-mnist/bin/activate
@ECHO-ECHOOooo
ECHO-ECHOOooo / gist:86a470bfd84894f3a3c45664a88b0656
Created November 11, 2017 20:08
Causes of Death by Injury in the USA, 1999-2015
"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" "