Skip to content

alexisrosuel/PyEWA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyEWA

Exponentially Weigthed Aggregation for Python

https://circleci.com/gh/alexisrosuel/PyEWA/tree/master.svg?style=shield&circle-token=:circle-token

The code supports exponentialweighted aggregation (ewa for short). Some standard base functions (constant, linear, etc) are built-in.

Examples of the use of this package are shown below.

The kriging methods are separated into four classes.

PyEWA will later be on PyPi, so installation is as simple as typing the following into a command line.

pip install pyewa

To update PyEWA from PyPi, type the following into a command line.

pip install --upgrade pyewa

PyEWA uses the MIT-Clause License.

To test, use nosetests . --with-coverage --cover-package=pyewa --cover-html --cover-erase

Exponentially weighted aggregation example

from pyewa.ewa import EWA
import numpy as np

data = np.array([[0.3, 1.2, 0.47],
                 [1.9, 0.6, 0.56],
                 [1.1, 3.2, 0.74],
                 [3.3, 4.4, 1.47],
                 [4.7, 3.8, 1.74]])

References

PAC-Bayesian bounds for the Exponentially Weighted Aggregate (EWA) in the online setting. Slow rates, fast rates. Examples: classification, regression. Multiplicative weights algorithms for the MS-type aggregation.

  1. Cesa-Bianchi & G. Lugosi, Prediction, learning and games, Cambridge University Press, 2006.
  1. Gerchinovitz, Prediction of individual sequences and prediction in the statistical framework: some links around sparse regression and aggregation techniques, PhD Thesis, Univ. Paris 11, 2011. (Chapters 2 and 3).

Hoeffding and Bernstein inequalities. PAC-Bayesian bounds for the EWA in the batch setting. Slow rates in the general case. Fast rates under Bernstein and margin assumptions. Examples: classification, regression, matrix factorization.

  1. Catoni, Pac-Bayesian supervised classification: the thermodynamics of statistical learning, IMS Lecture Notes, 2007.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published