Trees  Indices  Help 



Code for doing logistic regressions.


LogisticRegression Holds information necessary to do logistic regression classification. 









__package__ =


Train a logistic regression classifier on a training set. Argument xs is a list of observations and ys is a list of the class assignments, which should be 0 or 1. xs and ys should contain the same number of elements. update_fn is an optional callback function that takes as parameters that iteration number and log likelihood. 
Calculate the probability for each class.
Returns a list of the probability that it fits each class. 
Trees  Indices  Help 


Generated by Epydoc 3.0.1 on Fri Jun 22 16:34:21 2018  http://epydoc.sourceforge.net 