Skip to main content

Scikit-learn estimators based on projection pursuit.

Project description

# Projection Pursuit [![Travis Status](https://travis-ci.org/pavelkomarov/projection-pursuit.svg?branch=master)](https://travis-ci.org/pavelkomarov/projection-pursuit) [![Coverage Status](https://coveralls.io/repos/github/pavelkomarov/projection-pursuit/badge.svg?branch=master&service=github)](https://coveralls.io/github/pavelkomarov/projection-pursuit?branch=master&service=github)

[Documentation](https://pavelkomarov.com/projection-pursuit/skpp.html), [How it works](https://pavelkomarov.com/projection-pursuit/math.pdf).

This repository is home to a couple [scikit-learn](http://scikit-learn.org/)-compatible estimators based on Jerome Friedman’s generalizations[1] of his and Werner Stuetzle’s Projection Pursuit Regression algorithm[2][3]. A regressor capable of multivariate estimation and a classifier based on regression to a one-hot multivariate representation are included.

## Installation and Usage The package by itself comes with a single module containing the estimators. Before installing the module you will need numpy, scipy, scikit-learn, and matplotlib. To install the module execute:

`shell pip install projection-pursuit ` or `shell $ python setup.py install `

If the installation is successful, you should be able to execute the following in Python: `python >>> from skpp import ProjectionPursuitRegressor >>> estimator = ProjectionPursuitRegressor() >>> estimator.fit(np.arange(10).reshape(10, 1), np.arange(10)) `

Sphinx is run via continuous integration to generate [the API](https://pavelkomarov.com/projection-pursuit/skpp.html).

For a few usage examples, see the examples and benchmarks directories. For an intuition of what the learner is doing, try running viz_training_process.py. For comparisons to other learners and an intuition of why you might want to try PPR, try the benchmarks. For a deep dive in to the math and an explanation of exactly how and why this works, see [math.pdf](https://pavelkomarov.com/projection-pursuit/math.pdf).

## References

  1. Friedman, Jerome. (1985). “Classification and Multiple Regression Through Projection Pursuit.” http://www.slac.stanford.edu/pubs/slacpubs/3750/slac-pub-3824.pdf

  2. Hastie, Tibshirani, & Friedman. (2016). The Elements of Statistical Learning 2nd Ed., section 11.2.

    1. Projection pursuit regression https://en.wikipedia.org/wiki/Projection_pursuit_regression

Project details


Download files

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

Source Distribution

projection-pursuit-0.8.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file projection-pursuit-0.8.tar.gz.

File metadata

  • Download URL: projection-pursuit-0.8.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for projection-pursuit-0.8.tar.gz
Algorithm Hash digest
SHA256 e3dd9afc2331b4bc205c72b74c3953a2a266381785f4ad3397d61a630382f4e0
MD5 5b4479e918ad583115c777dc886e0b65
BLAKE2b-256 8aea3373604c59ed7dc2b99a8a5c532a2bcd2effbff595152805d6f06683d49d

See more details on using hashes here.

Supported by

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