This is a module I wrote to train a L1-logistic regression classifier, do cross validation to optimize parameters and decision threshold, given a scoring function.