Skip to content

Instantly share code, notes, and snippets.

View BillVanderLugt's full-sized avatar

Bill Vander Lugt BillVanderLugt

View GitHub Profile
@BillVanderLugt
BillVanderLugt / rank_metrics.py
Created March 8, 2018 19:08 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
@BillVanderLugt
BillVanderLugt / _tsne.pdf
Created May 30, 2017 19:12 — forked from kylemcdonald/_tsne.pdf
Exploring antonyms with word2vec.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BillVanderLugt
BillVanderLugt / ExplicitMF.py
Created May 26, 2017 05:17 — forked from EthanRosenthal/ExplicitMF.py
Class for training explicit matrix factorization model using either ALS or SGD
class ExplicitMF():
def __init__(self,
ratings,
n_factors=40,
learning='sgd',
item_fact_reg=0.0,
user_fact_reg=0.0,
item_bias_reg=0.0,
user_bias_reg=0.0,
verbose=False):
@BillVanderLugt
BillVanderLugt / pmf-and-modified-bpmf-pymc.py
Created May 26, 2017 02:18 — forked from macks22/pmf-and-modified-bpmf-pymc.py
Probabilistic Matrix Factorization (PMF) + Modified Bayesian BMF
"""
Implementations of:
Probabilistic Matrix Factorization (PMF) [1],
Bayesian PMF (BPMF) [2],
Modified BPFM (mBPMF)
using `pymc3`. mBPMF is, to my knowledge, my own creation. It is an attempt
to circumvent the limitations of `pymc3` w/regards to the Wishart distribution: