insurance_gam API documentation

Edit on GitHub

# insurance_gam

insurance-gam — interpretable GAM toolkit for insurance pricing.

Three subpackages, one install:

    from insurance_gam.ebm import InsuranceEBM        # interpretML EBM wrapper
    from insurance_gam.anam import ANAM               # Actuarial Neural Additive Model
    from insurance_gam.pin import PINModel            # Pairwise Interaction Networks

Each subpackage is independent. Import only the one you need. Heavy dependencies (torch, interpret) are only loaded when the subpackage is imported.

Do NOT import this top-level package expecting all subpackages to be available — use subpackage imports directly. The top-level package exposes only the version.

## Missing extras

If you see an ImportError when importing a subpackage, install the relevant extra:

    pip install insurance-gam[ebm]     # for insurance_gam.ebm (requires interpret)
    pip install insurance-gam[neural]  # for insurance_gam.anam and insurance_gam.pin (requires torch)
    pip install insurance-gam[all]     # everything

View Source

     1"""
     2insurance-gam — interpretable GAM toolkit for insurance pricing.
     3
     4Three subpackages, one install:
     5
     6    from insurance_gam.ebm import InsuranceEBM        # interpretML EBM wrapper
     7    from insurance_gam.anam import ANAM               # Actuarial Neural Additive Model
     8    from insurance_gam.pin import PINModel            # Pairwise Interaction Networks
     9
    10Each subpackage is independent. Import only the one you need.
    11Heavy dependencies (torch, interpret) are only loaded when the subpackage is imported.
    12
    13Do NOT import this top-level package expecting all subpackages to be available —
    14use subpackage imports directly. The top-level package exposes only the version.
    15
    16Missing extras
    17--------------
    18If you see an ImportError when importing a subpackage, install the relevant extra:
    19
    20    pip install insurance-gam[ebm]     # for insurance_gam.ebm (requires interpret)
    21    pip install insurance-gam[neural]  # for insurance_gam.anam and insurance_gam.pin (requires torch)
    22    pip install insurance-gam[all]     # everything
    23"""
    24
    25__version__ = "0.1.6"
    26__all__ = ["ebm", "anam", "pin", "__version__"]

__version__ = '0.1.6'