Skip to main content

Tools for machine learning and data mining in Astronomy

Project description

https://img.shields.io/badge/arXiv-1411.5039-orange.svg?style=flat https://img.shields.io/travis/astroML/astroML/master.svg?style=flat https://img.shields.io/pypi/v/astroML.svg?style=flat https://img.shields.io/pypi/dm/astroML.svg?style=flat https://img.shields.io/badge/license-BSD-blue.svg?style=flat

AstroML is a Python module for machine learning and data mining built on numpy, scipy, scikit-learn, and matplotlib, and distributed under the BSD license. It contains a growing library of statistical and machine learning routines for analyzing astronomical data in python, loaders for several open astronomical datasets, and a large suite of examples of analyzing and visualizing astronomical datasets.

This project was started in 2012 by Jake VanderPlas to accompany the book Statistics, Data Mining, and Machine Learning in Astronomy by Zeljko Ivezic, Andrew Connolly, Jacob VanderPlas, and Alex Gray.

Installation

This package uses distutils, which is the default way of installing python modules. Before installation, make sure your system meets the prerequisites listed in Dependencies, listed below.

Core

To install the core astroML package in your home directory, use:

pip install astroML

A conda package for astroML is also available either on the conda-forge or on the astropy conda channels:

conda install -c astropy astroML

The core package is pure python, so installation should be straightforward on most systems. To install from source, use:

python setup.py install

You can specify an arbitrary directory for installation using:

python setup.py install --prefix='/some/path'

To install system-wide on Linux/Unix systems:

python setup.py build
sudo python setup.py install

Dependencies

There are two levels of dependencies in astroML. Core dependencies are required for the core astroML package. Optional dependencies are required to run some (but not all) of the example scripts. Individual example scripts will list their optional dependencies at the top of the file.

Core Dependencies

The core astroML package requires the following (some of the functionality might work with older versions):

Optional Dependencies

Several of the example scripts require specialized or upgraded packages. These requirements are listed at the top of the particular scripts

  • HEALPy provides an interface to the HEALPix pixelization scheme, as well as fast spherical harmonic transforms.

Development

This package is designed to be a repository for well-written astronomy code, and submissions of new routines are encouraged. After installing the version-control system Git, you can check out the latest sources from GitHub using:

git clone git://github.com/astroML/astroML.git

or if you have write privileges:

git clone git@github.com:astroML/astroML.git

Contribution

We strongly encourage contributions of useful astronomy-related code: for astroML to be a relevant tool for the python/astronomy community, it will need to grow with the field of research. There are a few guidelines for contribution:

General

Any contribution should be done through the github pull request system (for more information, see the help page Code submitted to astroML should conform to a BSD-style license, and follow the PEP8 style guide.

Documentation and Examples

All submitted code should be documented following the Numpy Documentation Guide. This is a unified documentation style used by many packages in the scipy universe.

In addition, it is highly recommended to create example scripts that show the usefulness of the method on an astronomical dataset (preferably making use of the loaders in astroML.datasets). These example scripts are in the examples subdirectory of the main source repository.

Authors

Package Author

Maintainer

Code Contribution

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

astroML-1.0.2a1.tar.gz (114.4 kB view details)

Uploaded Source

Built Distribution

astroML-1.0.2a1-py3-none-any.whl (133.1 kB view details)

Uploaded Python 3

File details

Details for the file astroML-1.0.2a1.tar.gz.

File metadata

  • Download URL: astroML-1.0.2a1.tar.gz
  • Upload date:
  • Size: 114.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for astroML-1.0.2a1.tar.gz
Algorithm Hash digest
SHA256 b4567695ba79f7da8cae456fd91130445f0ed5eebb8ef97d58af4e4e59b78f94
MD5 cc9ca522f84d49886cc2d0d3abe8476e
BLAKE2b-256 b6bb3e19bf7fc9f86f243b8ab386c7851453ff0f99d0dfaec41c4010810b1bec

See more details on using hashes here.

File details

Details for the file astroML-1.0.2a1-py3-none-any.whl.

File metadata

  • Download URL: astroML-1.0.2a1-py3-none-any.whl
  • Upload date:
  • Size: 133.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for astroML-1.0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d50297b894b5af29719384ed998b442eca3da440b8ef9b0edbc58f89ed4887bf
MD5 942b29ebd60fcff508be12494fd98f68
BLAKE2b-256 267ed04de02300b146ecd4b13ae9157f1b085e0107cead7522f538279a9e71bb

See more details on using hashes here.

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