Skip to main content

Open Multivariate Adaptive Regression

Project description

omar

PyPI version WIP (name conflict see https://github.com/pypi/support/issues/6159)

omar (Open Multivariate Adaptive Regression) is a Python package for discovering localised, linear structure in complex, high-dimensional datasets. It implements a modernized version of the Multivariate Adaptive Regression Splines (MARS) algorithm with improved numerical efficiency, based on modern rank-one update strategies and optional Fortran acceleration.

Installation

From PyPI (coming soon)

pip install omar

From Source

See the Getting Started wiki page.


Quick Example

import numpy as np
from omar import OMAR

np.random.seed(0)

x = np.random.normal(2, 1, size=(1000, 3))
noise = np.random.normal(size=1000)
y = ((x[:, 0] + np.maximum(0, (x[:, 0] - 1)) +
      np.maximum(0, (x[:, 0] - 1)) * x[:, 1] +
      np.maximum(0, (x[:, 0] - 1)) * np.maximum(0, (x[:, 1] - 0.8))) +
     0.12 * noise)
model = OMAR(max_nbases=11)
model.find_bases(X, y)
print(model)

Documentation

Visit omar wiki


Contributing

We welcome contributions! See Contributing for code guidelines, tests, and CI workflow.


License

This project is licensed under the MIT License. See LICENSE.txt.

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

omar-0.0.1.post3.tar.gz (286.6 kB view details)

Uploaded Source

Built Distributions

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

omar-0.0.1.post3-cp313-cp313-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.13Windows x86-64

omar-0.0.1.post3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

omar-0.0.1.post3-cp313-cp313-macosx_14_0_arm64.whl (866.2 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

omar-0.0.1.post3-cp313-cp313-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

omar-0.0.1.post3-cp312-cp312-win_amd64.whl (16.9 MB view details)

Uploaded CPython 3.12Windows x86-64

omar-0.0.1.post3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

omar-0.0.1.post3-cp312-cp312-macosx_14_0_arm64.whl (866.2 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

omar-0.0.1.post3-cp312-cp312-macosx_13_0_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

File details

Details for the file omar-0.0.1.post3.tar.gz.

File metadata

  • Download URL: omar-0.0.1.post3.tar.gz
  • Upload date:
  • Size: 286.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omar-0.0.1.post3.tar.gz
Algorithm Hash digest
SHA256 4b195888e1d028bde3d36d342fa1a718cc4564b4d08b08b4afe75026f02461d2
MD5 6b4615cbb2bf3e6291df9974f71c59e8
BLAKE2b-256 f48dd94939e1f4baa0647b28823d76eb2109b95db687a8bdfc1a8dda467630a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3.tar.gz:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: omar-0.0.1.post3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omar-0.0.1.post3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6dd292124dbc8296b8cad1e5fb8b98084d22517314d05261b446c0fa1d6e42aa
MD5 9f2c169a8170b41c70ff9f086cb33e42
BLAKE2b-256 756d85355c6ae0e2142d1808e879921ed9e8640af41cd5f3e7103d08486421dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp313-cp313-win_amd64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9980f0cb4b0cc5291a743aee58b071f10fee9a6d2e62be5544ddffa5c6c0d7cc
MD5 7f3e42d04a4da5e42eb8e2c827551623
BLAKE2b-256 9fc1fd225fa56bd225d62c77e53f980090aa6940c5ee8b60f2dd0e5811d65fac

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1889dd23162ce8bf2f97f199d0ab49027fa2d98df29670c9ce6057c0d7201499
MD5 c40f98508bf9db4485f40ba05c084409
BLAKE2b-256 76e0e7d30daccb0899bfdb4b8a74e773c0c27298d8a95ca483aa34df1023bd39

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d740cdb8ecacb2051cb5b6923f05d8a51eb7fc8a59136eb39cde6bf907fe7ffb
MD5 b8efae2b576f7ced36e3023ca64949c4
BLAKE2b-256 d2c27084f1366d356200b01e7b692fa06b55704adbc5744df9fc89fb7ecb8f6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp313-cp313-macosx_13_0_x86_64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: omar-0.0.1.post3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for omar-0.0.1.post3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 84162c60fab94711118e0f1da7cedfdb9ccfe2405c7d1f278be585be1e036b66
MD5 dfa02091ba1295da5297df33c0b77afb
BLAKE2b-256 c0dcd88dd959aaa331553c21c291ac039aa442e761ff6c09e727af627bf498cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp312-cp312-win_amd64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0d93d24507105e3b8929fa119dfaa1b5e35c7fec245747822d6b1561f41ebd6
MD5 02b5eabbb30b66c1e6f04166917072ad
BLAKE2b-256 e0d81308a3445bee220078fff8244a5e975b98ba25810e0794334f766c501830

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f719960af11bfedcf9ae38a57a5f56ea81b2b589db49817f1771dc0c1a03da18
MD5 fb396da9712b0858d0f6e1a47011d655
BLAKE2b-256 787504047ec6c7736b68af07be4838ecf59b2e0e6bdbb797de19ee19175d73fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file omar-0.0.1.post3-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for omar-0.0.1.post3-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 00ddcfa6b2278a7e845103cf30fa0093d4b3143d1199c392c4018795a702ba32
MD5 03a91a7cd5d5aedf2038e7c39a3bb9bc
BLAKE2b-256 986cc3e623bd39764d87f44cb0e56a7045b991513b49ab1eb95ee34ec1b9ffc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for omar-0.0.1.post3-cp312-cp312-macosx_13_0_x86_64.whl:

Publisher: build_wheels.yml on Helge-Stein-Group/omar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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