Skip to main content

Machine learning framework built on second-order optimization

Project description

peak-engines

PyPI version License: CC BY 4.0 API Reference

peak-engines is machine learning framework that focuses on applying advanced optimization algorithms to build better models. Here are some examples of what it can do:

Ridge Regression Parameter Optimization

By expressing cross-validation as an optimization objective and computing derivatives, peak-engines is able to efficiently find regularization parameters that lead to the best score on a leave-one-out or generalized cross-validation. It, futhermore, scales to handle multiple regularizers.

alt text

Warped Linear Regression

Let X and y denote the feature matrix and target vector of a regression dataset. Under the assumption of normally distributed errors, Ordinary Least Squares (OLS) finds the linear model that maximizes the likelihood of the dataset

What happens when errors aren't normally distributed? Well, the model will be misspecified and there's no reason to think its likelihood predictions will be accurate. This is where Warped Linear Regression can help. It introduces an extra step to OLS where it transforms the target vector using a malleable, monotonic function f parameterized by ψ and adjusts the parameters to maximize the likelihood of the transformed dataset

By introducing the additional transformation step, Warped Linear Regression is more general-purpose than OLS while still retaining the strong structure and interpretability.

alt text

Installation

pip install peak-engines

Tutorials

Articles

Examples

Documentation

See doc/Reference.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

peak_engines-0.2.3-cp32-abi3-manylinux1_x86_64.whl (16.0 MB view hashes)

Uploaded CPython 3.2+

peak_engines-0.2.3-cp32-abi3-macosx_10_9_intel.whl (14.5 MB view hashes)

Uploaded CPython 3.2+ macOS 10.9+ intel

peak_engines-0.2.3-cp27-cp27mu-manylinux1_x86_64.whl (16.0 MB view hashes)

Uploaded CPython 2.7mu

peak_engines-0.2.3-cp27-cp27mu-macosx_10_9_intel.whl (14.5 MB view hashes)

Uploaded CPython 2.7mu macOS 10.9+ intel

peak_engines-0.2.3-cp27-cp27m-manylinux1_x86_64.whl (16.0 MB view hashes)

Uploaded CPython 2.7m

peak_engines-0.2.3-cp27-cp27m-macosx_10_9_intel.whl (14.5 MB view hashes)

Uploaded CPython 2.7m macOS 10.9+ intel

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page