Skip to content

Instantly share code, notes, and snippets.

@agramfort
agramfort / ranking.py
Created March 18, 2012 13:10 — forked from fabianp/ranking.py
Pairwise ranking using scikit-learn LinearSVC
"""
Implementation of pairwise ranking using scikit-learn LinearSVC
Reference: "Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich,
T. Graepel, K. Obermayer.
Authors: Fabian Pedregosa <[email protected]>
Alexandre Gramfort <[email protected]>
"""
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@matsuken92
matsuken92 / 01_preparation.py
Last active May 2, 2024 03:08
ROC Curve Animation
%matplotlib inline
import sys
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as st
from matplotlib import animation as ani
import sklearn.metrics as mt
@sankichi92
sankichi92 / jserver.rb
Last active July 17, 2016 04:14
Service Computing Assignment 3 - Practice of Information Systems
require 'savon'
source_lang, target_lang, source = ARGV
wsdl = 'http://langrid.org/service_manager/wsdl/KyotoUJServer'
auth = %w(username password) # TODO: replace username and password with yours
client = Savon.client(wsdl: wsdl, basic_auth: auth)
response = client.call(:translate) do
@azu
azu / README.md
Last active April 25, 2025 13:16
スタートアップ/企業の調べ方
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.