Bayesian Machine Scientist theorist for AutoRA
Project description
AutoRA BMS Theorist
autora-theorist-bms
is a Python module built on AutoRA that can be used to discover equations that fit data.
Website: https://autoresearch.github.io/autora/
User Guide
You will need:
python
3.8 or greater: https://www.python.org/downloads/
Install BMS as part of the autora
package:
pip install -U "autora[theorist-bms]" --pre
It is recommended to use a
python
environment manager likevirtualenv
.
Check your installation by running:
python -c "from autora.theorist.bms import BMSRegressor; BMSRegressor()"
Developer Guide
Get started
Clone the repository (e.g. using GitHub desktop,
or the gh
command line tool)
and install it in "editable" mode in an isolated python
environment, (e.g.
with
virtualenv) as follows:
In the repository root, create a new virtual environment:
virtualenv venv
Activate it:
source venv/bin/activate
Use pip install
to install the current project ("."
) in editable mode (-e
) with dev-dependencies ([dev]
):
pip install -e ".[dev]"
Run the test cases:
pytest tests/ --doctest-modules src/
Activate the pre-commit hooks:
pre-commit install
Add new dependencies
In pyproject.toml add the new dependencies under dependencies
Install the added dependencies
pip install -e ".[dev]"
Publish the package
Update the metadata under project
in the pyproject.toml file to include name, description, author-name, author-email and version
- Follow the guide here: https://packaging.python.org/en/latest/tutorials/packaging-projects/
Build the package using:
python -m build
Publish the package to PyPI using twine
:
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autora-theorist-bms-1.0.0a0.tar.gz
.
File metadata
- Download URL: autora-theorist-bms-1.0.0a0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d2f2c80460c80bb2be7599698f52edce498bb3cb7b7e63579b97afe5d92597d |
|
MD5 | 4898cde9f5fb3bbf8ccb4f2e7b6ffb7b |
|
BLAKE2b-256 | cd08f7458f7385d224c873ee4a0e1aa9d23a4bbc340e033e25a08a7f74a45eea |
File details
Details for the file autora_theorist_bms-1.0.0a0-py3-none-any.whl
.
File metadata
- Download URL: autora_theorist_bms-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d03d203ca96c485b25946419dda325a7ed2b8dcc7e6f8658d636d589cb7333 |
|
MD5 | ea0ff5b0529c901f70e1257fe6b91994 |
|
BLAKE2b-256 | 10c753cdf6ff89fb35aca544ec3ef638fcb2bc0fb73499d40569b25db58397e9 |