duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| # Original code from tinrtgu on Kaggle under WTFPL license | |
| # Relicensed to BSD 3-clause (it does say do what you want...) | |
| # Authors: Kyle Kastner | |
| # License: BSD 3-clause | |
| # Reference links: | |
| # Adaptive learning: http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/41159.pdf | |
| # Criteo scalable response prediction: http://people.csail.mit.edu/romer/papers/TISTRespPredAds.pdf | |
| # Vowpal Wabbit (hashing trick): https://github.com/JohnLangford/vowpal_wabbit/ | |
| # Hashing Trick: http://arxiv.org/pdf/0902.2206.pdf |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| public class NormalizedGini { | |
| private static double gini(double[] a, double[] p, double[] w) { | |
| int len = a.length; | |
| if (p.length != len || w.length != len) { | |
| throw new IllegalArgumentException("array length not equal"); | |
| } |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Fri Jun 15 14:00:29 2012 | |
| Author: Josef Perktold | |
| License: MIT, BSD-3 (for statsmodels) | |
| http://en.wikipedia.org/wiki/Distance_correlation | |
| Yaroslav and Satrajit on sklearn mailing list |
| Originally: | |
| https://gist.github.com/7565976a89d5da1511ce | |
| Hi Donald (and Martin), | |
| Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I | |
| appreciate the tone. This is a Yegge-long response, but given that you and | |
| Martin are the two people best-situated to do anything about this, I'd rather | |
| err on the side of giving you too much to think about. I realize I'm being very | |
| critical of something in which you've invested a great deal (both financially |
| import numpy.lib | |
| import numpy as np | |
| import pandas as pd | |
| import cPickle as pickle | |
| def save_pandas(fname, data): | |
| '''Save DataFrame or Series | |
| Parameters | |
| ---------- |
| #!/usr/bin/env python | |
| # | |
| # Extracts email addresses from one or more plain text files. | |
| # | |
| # Notes: | |
| # - Does not save to file (pipe the output to a file if you want it saved). | |
| # - Does not check for duplicates (which can easily be done in the terminal). | |
| # | |
| # (c) 2013 Dennis Ideler <ideler.dennis@gmail.com> |
| """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 |