Glmnet - IntroductionHere is a brief introduction of the package. The best way of getting started with this package is to look at the Jupyter example file created to demonstrate its features. This should serve as the primary guidepost for the use of this package. Additional detailed documentation and usage information are provided within each python function. DescriptionSuppose where For other families, glmnet maximizes the appropriate penalized log-likelihood (partial likelihood for the cox model), or minimize the penalized negative one. Take the binomial model for example, it solves The algorithm uses cyclical coordinate descent in a pathwise fashion. In addition to basic settings, many more options are available: observation weights, choice of lambda sequence, grouping, etc. For more information, see the reference papers, help file or the documentation (in progress). Two central functions of the package are:
ExampleWe give a simple example here just to point the way. More exploration can be done by referring to the help files or the illustrative documentation. Note that the functions must be loaded before using them, and all data are required to be scipy objects. Suppose x is the input matrix and y the response vector. Then,
List of Major Functions
|