Skip to content

Instantly share code, notes, and snippets.

View jclevesque's full-sized avatar
🏠
Working from home

Julien-Charles Lévesque jclevesque

🏠
Working from home
View GitHub Profile
@jclevesque
jclevesque / detect.py
Last active September 16, 2015 21:02 — forked from mgard/detect.py
# import the necessary packages
import argparse
import datetime
import imutils
import time
import cv2
import collections
# construct the argument parser and parse the arguments
import numpy as np
from sklearn.ensemble import GradientBoostingClassifier as GBC
import pandas as pd
import math
# Load training data
print('Loading training data.')
data_train = np.loadtxt( 'training.csv', delimiter=',', skiprows=1, converters={32: lambda x:int(x=='s'.encode('utf-8')) } )
# Pick a random seed for reproducible results. Choose wisely!