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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pilipolio
pilipolio / 201703_PandasToDictToVectorizer.ipynb
Last active March 8, 2017 09:59
201703_PandasToDictToVectorizer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pilipolio
pilipolio / FrozenLake.ipynb
Last active February 19, 2017 00:53
FrozenLake with Q tabular learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pilipolio
pilipolio / 201607_BanditsPlayground.ipynb
Created July 18, 2016 14:01
201607_BanditsPlayground.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import requests
from functional import compose
from functools import partial
from collections import namedtuple
import itertools
class DescriptorDefinition(namedtuple('DescriptorDefinition', ['id', 'type', 'name'])):
@classmethod
def from_json(cls, definition_json):
@pilipolio
pilipolio / local-we7recommend.cfg
Created December 19, 2013 17:33
local-we7recommend
[Core]
RECOMMENDATIONS_DATABASE_CONNECTION_STRING = host='localhost' user='postgres' password='' dbname='recommends'
LIVE_DATABASE_CONNECTION_STRING = host='localhost' user='postgres' password='' dbname='podsplice'
BACKUP_DATABASE_CONNECTION_STRING = host='localhost' user='postgres' password='' dbname='podsplice'
@pilipolio
pilipolio / RankingDistances.ipynb
Created November 26, 2013 09:21
Experiments based on paper "Generalized distances between rankings" by Kumar and Vassilvitskii.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.