Skip to main content

Classifier tuned for neuroimaging based on SpaRSA solver

Project description

BrainOwl

This is a classifier tuned for neuroimaging. In particular for task-related fMRI. It is meant to be used with the OWL norm (also called Ordered $l_1$ norm) and uses a solver based on SpaRSA.

The OWL norm should identify features relevant for the learning problem, even if they are correlated. Weight maps based on OWL tend to be sparse, but not so sparse like the solutions from LASSO, for example.

Install

Install using pip (be sure you have python3>=3.5):

pip install brainowl

And done.

If you want to have the source code, you can clone the repository using git:

git clone https://github.com/jpvaldes/brainowl.git

and then install it:

cd brainowl
pip install -e .

Usage example

The included Jupyter notebook contains an example usage of the BrainOwl classifier showing how to decode two categories of the classic neuroimaging Haxby dataset.

The dataset will be downloaded automatically if it is not found.

Acknowledgments

The scikit-learn library for making it easier to develop new ideas, the pyowl implementation, and the nilearn project (in particular, the SpaceNet learners).

This project contains code from pyowl.

References

X Zeng, M A T Figueiredo, The Ordered Weighted $l_1$ Norm:
Atomic Formulation, Projections, and Algorithms.

J. Bogdan, E. Berg, W. Su, and E. Candes, Statistical Estimation and
Testing via the Ordered $l_1$ Norm.

Stephen Wright, Robert Nowak, and Mario Figueiredo. Sparse Reconstruction
by Separable Approximation. IEEE Transactions on Signal Processing, 2009,
Vol. 52, No. 7, 2479-2493.

Marcos Raydan. The Barzilai and Borwein Gradient Method for the Large Scale
Unconstrained Minimization Problem. SIAM J. Optim., 1997, Vol. 7, No. 1,
26-33.

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

brainowl-0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainowl-0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file brainowl-0.1.tar.gz.

File metadata

  • Download URL: brainowl-0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for brainowl-0.1.tar.gz
Algorithm Hash digest
SHA256 2334b03848e2420c97dbee86ad95b9beca183608bbacd3df3062be0f06c97191
MD5 d95161d83bcfd8a2e19bfb70094562d2
BLAKE2b-256 94a96ec5d19a4c857e95e65cd90800a752641b67e622618b282cab53241990a5

See more details on using hashes here.

File details

Details for the file brainowl-0.1-py3-none-any.whl.

File metadata

  • Download URL: brainowl-0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for brainowl-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4432b82fa445caa7fe17ba4e2150be1e71afe97ca4fbc9e9882af05a5aa61ea
MD5 f9d658e8412b44a53005d66e332a26b9
BLAKE2b-256 d874cd8675cfe56f9142651f3fc2a26761eb6954acb3d77ec1fa6977e3bf8bbb

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