Skip to content

Instantly share code, notes, and snippets.

View HarrisMx's full-sized avatar
🎯
Focusing

Mxolisi HarrisMx

🎯
Focusing
  • Pretoria
View GitHub Profile
@HarrisMx
HarrisMx / histogram.py
Created December 13, 2019 14:10 — forked from erh/histogram.py
This is a very simple python program that reads your email inbox and generates a histogram of how much email is unread in your inbox.
#/usr/bin/env python
###
### This generates a very simple histogram of unread e-mail in your INBOX.
### This is meant as a toy, and your are free to do whatever you want with the code.
###
# core python libraries
import datetime
import numpy as np
from keras import backend as K
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.preprocessing.image import ImageDataGenerator
from sklearn.metrics import classification_report, confusion_matrix
#Start
train_data_path = 'F://data//Train'