Skip to content

Instantly share code, notes, and snippets.


geekan geekan

View GitHub Profile
geekan /
Created Jun 29, 2017 — forked from fabianp/
Pairwise ranking using scikit-learn LinearSVC
Implementation of pairwise ranking using scikit-learn LinearSVC
"Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich,
T. Graepel, K. Obermayer 1999
"Learning to rank from medical imaging data." Pedregosa, Fabian, et al.,
Machine Learning in Medical Imaging 2012.
geekan /
Created Mar 19, 2017 — forked from codekansas/
Using Word2Vec embeddings in Keras models
from __future__ import print_function
import json
import os
import numpy as np
from gensim.models import Word2Vec
from gensim.utils import simple_preprocess
from keras.engine import Input
from keras.layers import Embedding, merge
import asyncio
import hiredis
d = {}
def process(req):
cmd = req[0].lower()
if cmd==b'set':
d[req[1]] = req[2]
return b"+OK\r\n"
geekan / cosine_similarity.scala
Created May 20, 2015
simple scala functions for cosine similarity
View cosine_similarity.scala
* Object in scala for calculating cosine similarity
* Reuben Sutton - 2012
* More information:
object CosineSimilarity {
* This method takes 2 equal length arrays of integers
You can’t perform that action at this time.