.. pyGAM documentation master file, created by sphinx-quickstart on Sat Aug 18 15:42:53 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to pyGAM's documentation! ================================= .. image:: ../imgs/pygam_tensor.png :width: 450px :alt: pyGAM logo :align: center |Build Status| |Documentation Status| |Coverage| |PyPi Version| |Python Versions| |Zenodo| |Open Source| | Getting Started =============== pyGAM is a package for building Generalized Additive Models in Python, with an emphasis on modularity and performance. The API will be immediately familiar to anyone with experience of scikit-learn or scipy. If you're new to pyGAM, take a :ref:`Tour of pyGAM ` for an introduction to the package. | Installation ============ Pip --- pyGAM is on pypi, and can be installed using ``pip``: :: pip install pygam Conda ----- Or via ``conda-forge``, however this is typically less up-to-date: :: conda install -c conda-forge pyGAM Bleeding Edge ------------- You can install the bleeding edge from github using ``pip``. First clone the repo, ``cd`` into the main directory and do: :: pip install . # for an unstable "latest" dev version install # or pip install -e . # for an editable developer/contributor install Optional -------- To speed up optimization on large models with constraints, it helps to have `scikit-sparse `_ installed because it contains a slightly faster, sparse version of Cholesky factorization. The import from ``scikit-sparse`` references ``nose``, so you'll need that too. The easiest way is to use Conda: :: conda install -c conda-forge scikit-sparse nose More information is available in the `scikit-sparse docs `_. | Dependencies ============ pyGAM is tested on Python 3.10+ and depends on ``NumPy``, ``SciPy``, and ``progressbar2``. In addition to the above dependencies, the ``pygam.datasets`` submodule relies on ``Pandas``. See `pyproject.toml `_ for detailed version information). | Citing pyGAM ============ Servén D., Brummitt C. (2018). pyGAM: Generalized Additive Models in Python. Zenodo. `DOI: 10.5281/zenodo.1208723 `_ | Contact ======= To report an issue with pyGAM please use the `issue tracker `_. | License ======= `Apache Software License 2.0 `_ | Quick Start =========== .. toctree:: :maxdepth: 2 notebooks/quick_start.ipynb | Tour of pyGAM ============= .. toctree:: :maxdepth: 2 notebooks/tour_of_pygam.ipynb | User API ======== .. toctree:: :maxdepth: 2 reference/index | Indices and tables ================== :ref:`genindex` .. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/dswah/pygam/pypi.yml?logo=github :target: https://github.com/dswah/pygam/actions/workflows/pypi.yml .. |Documentation Status| image:: https://img.shields.io/readthedocs/pygam?logo=readthedocs :target: https://pygam.readthedocs.io/en/latest/?badge=latest .. |Coverage| image:: https://codecov.io/gh/dswah/pygam/branch/master/graph/badge.svg :target: https://codecov.io/gh/dswah/pygam .. |PyPi Version| image:: https://badge.fury.io/py/pygam.svg :target: https://badge.fury.io/py/pygam .. |Python Versions| image:: https://shields.io/badge/python-3.10+-blue .. |Zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1208723.svg :target: https://doi.org/10.5281/zenodo.1208723 .. |Open Source| image:: https://img.shields.io/badge/powered%20by-Open%20Source-orange.svg?style=flat&colorA=E1523D&colorB=007D8A :target: https://github.com/dswah/pyGAM