Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertomartin
bertomartin / clean_data.py
Created September 9, 2016 19:55 — forked from michael-erasmus/clean_data.py
Simple logistic model
selected_words = [
'receipt',
'card',
'refund',
'month',
'monthly',
'plan',
'profit',
'charged',
'charge',
@bertomartin
bertomartin / GPU-Prices.ipynb
Created August 3, 2016 19:28 — forked from germannp/GPU-Prices.ipynb
Comparing GPU prices
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bertomartin
bertomartin / Dockerfile
Created May 13, 2016 06:03 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@bertomartin
bertomartin / README.md
Created May 2, 2016 21:05 — forked from dacamo76/README.md
Installing scikit-learn on Amazon Linux AMI on EC2

To install scikit-learn easily run the following command.

curl https://gist.githubusercontent.com/dacamo76/4780765/raw/c3779996d8f6b13caaaa48d33aa1585684c7f8e6/scikit-learn-install.sh | sh

Please look over the shell file being run to make sure no evil is done to your machine.

@bertomartin
bertomartin / ml-ruby.md
Created April 28, 2016 17:53 — forked from gbuesing/ml-ruby.md
Resources for Machine Learning in Ruby

Resources for Machine Learning in Ruby

Gems

@bertomartin
bertomartin / System Design.md
Created April 19, 2016 18:31 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@bertomartin
bertomartin / hashmap.py
Created April 18, 2016 18:23 — forked from kracekumar/hashmap.py
Hash Map implementation in Python
### Hash implementation in python
def custom_hash(key):
"""
Return the hash value of the given key. Uses dbj2
@param key: String or unicode
"""
result = 5381
multiplier = 33
@bertomartin
bertomartin / hello-world.py
Created April 17, 2016 04:34 — forked from alejandrofloresm/hello-world.py
Hello World for Google
# Code example for:
# Hello World - Machine Learning Recipes #1 - Google Developers
# https://www.youtube.com/watch?v=cKxRvEZd3Mw
from sklearn import tree
# Bumpy = 0, Smooth = 1
features = [[140, 1], [130, 1], [150, 0], [170, 0]]
# Apple = 0, Orange = 1
labels = [0, 0, 1, 1]
@bertomartin
bertomartin / topological.py
Created April 5, 2016 22:21 — forked from kachayev/topological.py
Topological sort with Python (using DFS and gray/black colors)
# Simple:
# a --> b
# --> c --> d
# --> d
graph1 = {
"a": ["b", "c", "d"],
"b": [],
"c": ["d"],
"d": []
}