Skip to content

Instantly share code, notes, and snippets.

Avatar

David Calloway ECHO-ECHOOooo

  • Nova Technologies
  • Orlando, FL and Nathrop, CO
View GitHub Profile
View gist:38b9af3f654695d3a63d1b2cccb39417
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
View gist:19c173ec762d1934727c3551a98be27e
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
View gist:6bea8cc7aac39e5038f11d263bc5577c
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
View gist:89cc44d26ede98a84ee1631e27733e91
$ 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
View gist:59355c971bfa16cfeaa8435a7dfdf564
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.
>>>
View gist:c6bf3d216f5f93409219f7526f942f6b
$ sudo apt install virtualenv
$ virtualenv -p /usr/bin/python3 kaggle-mnist
$ source kaggle-mnist/bin/activate
@ECHO-ECHOOooo
ECHO-ECHOOooo / gist:86a470bfd84894f3a3c45664a88b0656
Created Nov 11, 2017
Causes of Death by Injury in the USA, 1999-2015
View gist:86a470bfd84894f3a3c45664a88b0656
"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" "