omar
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
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.
Metadata
Release files for omar 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omar-1.0.tar.gz | 286.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| omar-1.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| omar-1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.17+ x86-64 | Details |
| omar-1.0-cp313-cp313-macosx_14_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 14.0+ ARM64 | Details |
| omar-1.0-cp313-cp313-macosx_13_0_x86_64.whl | CPython 3.13 | CPython 3.13 | macOS 13.0+ x86-64 | Details |
| omar-1.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| omar-1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
| omar-1.0-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details |
| omar-1.0-cp312-cp312-macosx_13_0_x86_64.whl | CPython 3.12 | CPython 3.12 | macOS 13.0+ x86-64 | Details |
Total release size: 47.7 MB
Release files / omar-1.0.tar.gz
| Download URL | omar-1.0.tar.gz |
|---|---|
| Size | 286.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ea416890a53c7c841f6c4040fb3eee1a86d061b40e6fa862fb451dda885ff2b
|
|
BLAKE2b-256 checksum How to use checksums |
887fdc890d2d735666c0f4677b7538164431ee07ffa74ca67f4c0d28ca59131f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp313-cp313-win_amd64.whl
| Download URL | omar-1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 16.9 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
39058d31c07fce013aa2cfde56249b5b9f1f3117a41d24ff10499e7f13ea8d49
|
|
BLAKE2b-256 checksum How to use checksums |
c3f71d22bf23c9ede53e7b40bc5b186651e3d79be2593e928666a73c17320ad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | omar-1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
69d8dcd8e1617098712397ea5f4e868b23dd8499e3e574f3638b42cc5760d035
|
|
BLAKE2b-256 checksum How to use checksums |
6767a56242a1b9d159399b638f06f7f783a4d582799e5a077598dd6b4cae5fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | omar-1.0-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 866.0 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
72f0fc7514a2b0b0eeb88a099855baf2c7bf74031dbea76cb2b21ef687c8e1d6
|
|
BLAKE2b-256 checksum How to use checksums |
ac799a4ff1aed8ca3184efcdb2fd46b87d4df7a9fbb0d849f0bab5ee2ce2eff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp313-cp313-macosx_13_0_x86_64.whl
| Download URL | omar-1.0-cp313-cp313-macosx_13_0_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 macOS 13.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
0ff3044db1db009587d42a5bc29db3c7eec7a99fe8951804cfb4699eb55c1511
|
|
BLAKE2b-256 checksum How to use checksums |
57bc4c8598e7dd9a860810584bd73c9fde1c05f81ebdfb16faff9d4d78768bf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp312-cp312-win_amd64.whl
| Download URL | omar-1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 16.9 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
54bb6f0b10575cdf97c1c63bd1dace44074bf9718315dde5371c65b420968366
|
|
BLAKE2b-256 checksum How to use checksums |
a9f9e30220b5f9ffc6fc00c479de0f1229193e82477a9848b07ee7a97659b729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | omar-1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b633f0a50fc63f5f1a37af3c7a9c58c89d3672cd2cab35ca26f8de866071fcbf
|
|
BLAKE2b-256 checksum How to use checksums |
8f55f51ec9d553e2a748518ce7a898b19404507f5164f2dfff7d010b808e48f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | omar-1.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 866.0 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3dc540f73765536bbc1bc70f88b4183fab078c79333dd0399851af4242d640f3
|
|
BLAKE2b-256 checksum How to use checksums |
75e04a7fc6582d58ebd3e2da8b78582bf22d8823e00754fb669270ed41517d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency logRelease files / omar-1.0-cp312-cp312-macosx_13_0_x86_64.whl
| Download URL | omar-1.0-cp312-cp312-macosx_13_0_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 macOS 13.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
853922b77552012b39187af068a44ca40bd5d43935fce6fb6df3bedada8263ed
|
|
BLAKE2b-256 checksum How to use checksums |
aaae0cc9a53c051ac1a1cff176efb4885ebd4c7eeba22286507e78e5aaab8eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2025.
Transparency log