Skip to main content

Automate the Creation of Generalized Additive Models (GAMs)

Project description

autogam

Automate the Creation of Generalized Additive Models (GAMs)

Installation

$ pip install autogam

Usage

Example 1: Fitting AutoGAM on a Random Dataset

import numpy as np
import pandas as pd
from autogam.autogam import AutoGAM

# Generate a random dataset
df_random = pd.DataFrame({
    'x1': np.random.uniform(0, 10, 100),
    'x2': np.random.uniform(0, 10, 100),
    'y': np.random.uniform(0, 10, 100)
})

# Fit the model using AutoGAM
ag_random = AutoGAM(df_random, 'y')

# Display the model summary
ag_random.summary()

# Display the performance metrics
ag_random.print()

Example 2: Fitting AutoGAM on the df_autos Dataset

import pandas as pd
from statsmodels.gam.tests.test_penalized import df_autos
from autogam.autogam import AutoGAM

# Use the `df_autos` dataset from statsmodels
ag_autos = AutoGAM(df_autos, 'city_mpg')

# Display the model summary
ag_autos.summary()

# Display the performance metrics
ag_autos.print()

License

autogam was created by Chitu Okoli. It is licensed under the terms of the MIT license.

Credits

autogam was created with cookiecutter and the py-pkgs-cookiecutter template.

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

autogam-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

autogam-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file autogam-0.1.0.tar.gz.

File metadata

  • Download URL: autogam-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11

File hashes

Hashes for autogam-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e68dd3e452ce5d8e6ebad6ab95217fe400d55474e283ab8144b6c3e952c45b7
MD5 18e35f0bdf2c0007f93845a12dbdd988
BLAKE2b-256 2bc667fb4402efa6fa8545f5beeb2c68e842163c2a859c4faf73d989c5bc06ff

See more details on using hashes here.

File details

Details for the file autogam-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: autogam-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11

File hashes

Hashes for autogam-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 332811d91ae082be60a6ef94b601e68152e900fc85fdbac880615de7da0131f8
MD5 2ab8627a5bd76f3c37f909abb766aa8b
BLAKE2b-256 9c974c75331f7b4b6414ad6acb498f0d7f7f8e1537b9a61e484aa810b45b06d6

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page