Skip to content

Instantly share code, notes, and snippets.

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

George Georgiadis georggr

🏠
Working from home
View GitHub Profile
@neilernst
neilernst / ut-thesis-begin.tex
Created July 27, 2011 14:32
Scrivner/Ut-thesis preamble
\RequirePackage[debrief,save]{silence}
% %silence filters. I use this with a custom script to pretty-print missing refs.
%\WarningFilter*{latex}{Citation `\@citeb' on page \thepage \space undefined}
\WarningFilter*{natbib}{Citation `\@citeb' on page \thepage \space undefined}
\WarningFilter*{latex}{Label}% `\@thelabel' multiply defined.}
\WarningFilter*{latex}{Reference}% `sec:ASK' on page \thepage undefined}
\documentclass[10pt,oneside]{ut-thesis} %draft
\usepackage{etex}
\makeindex
@fnielsen
fnielsen / gist:1226214
Created September 19, 2011 09:32
Email classification example with Python, NLTK, ...
documents = [ dict(
email=open("conference/%d.txt" % n).read().strip(),
category='conference') for n in range(1,372) ]
documents.extend([ dict(
email=open("job/%d.txt" % n).read().strip(),
category='job') for n in range(1,275)])
documents.extend([ dict(
email=open("spam/%d.txt" % n).read().strip(),
category='spam') for n in range(1,799) ])
@marcelcaraciolo
marcelcaraciolo / tf_idf_final.py
Created January 13, 2012 03:38
tf-idf example
#-*- coding: utf-8 -*-
import re
import nltk
from nltk.tokenize import RegexpTokenizer
from nltk import bigrams, trigrams
import math
stopwords = nltk.corpus.stopwords.words('portuguese')
@amueller
amueller / Diagram1.dia
Last active August 18, 2022 05:03
Machine learning cheat sheet diagram svg and dia file
@zacstewart
zacstewart / classifier.py
Last active September 19, 2024 23:56
Document Classification with scikit-learn
import os
import numpy
from pandas import DataFrame
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
from sklearn.cross_validation import KFold
from sklearn.metrics import confusion_matrix, f1_score
NEWLINE = '\n'
@pachadotdev
pachadotdev / r_python_homebrew.sh
Last active October 9, 2022 06:41
Install R and Python via Homebrew
# See http://pacha.hk/2017-07-12_r_and_python_via_homebrew.html
# XCode CLT
xcode-select --install
# Update Homebrew and add formulae
brew update
# Check for broken dependencies and/or outdated packages
brew doctor
@georggr
georggr / README.md
Created July 16, 2020 10:17 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.