boostsrl
boostsrl is a set of Python wrappers around BoostSRL with a scikit-learn interface.
Documentation: https://boostsrl.readthedocs.io/en/latest/
Questions? Contact Alexander L. Hayes (hayesall)
Getting Started
Prerequisites:
Java 1.8
Python (3.6, 3.7)
Installation
pip install boostsrl
Basic Usage
The general setup should be similar to scikit-learn. But there are a few extra requirements in terms of setting background knowledge and formatting the data.
A minimal working example (using the Toy-Cancer data set imported with ‘example_data’) is:
>>> from boostsrl.rdn import RDN
>>> from boostsrl import Background
>>> from boostsrl import example_data
>>> bk = Background(
... modes=example_data.train.modes,
... use_std_logic_variables=True,
... )
>>> clf = RDN(
... background=bk,
... target='cancer',
... )
>>> clf.fit(example_data.train)
>>> clf.predict_proba(example_data.test)
array([0.88079619, 0.88079619, 0.88079619, 0.3075821 , 0.3075821 ])
>>> clf.classes_
array([1., 1., 1., 0., 0.])
example_data.train and example_data.test are each boostsrl.Database objects, so this hides some of the complexity behind the scenes.
This example abstracts away some complexity in exchange for compactness. For more thorough examples, see the ‘docs/examples/’ directory.
Contributing
We have adopted the Contributor Covenant Code of Conduct version 1.4. Please read, follow, and report any incidents which violate this.
Questions, Issues, and Pull Requests are welcome. Please refer to CONTRIBUTING.md for information on submitting issues and pull requests.
Versioning and Releases
We use SemVer for versioning. See Releases for stable versions that are available, or the Project Page on PyPi.
Metadata
Release files for boostsrl 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| boostsrl-0.4.3.tar.gz | 4.1 MB | Without provenance | Details for boostsrl-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| boostsrl-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for boostsrl-0.4.3-py3-none-any.whl |
Total release size: 8.2 MB
Release files / boostsrl-0.4.3.tar.gz
| Download URL | boostsrl-0.4.3.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3a3751d054cd89410e91e241a7e7d57e646979d699355c6f51bef0a3149a97f
|
|
BLAKE2b-256 checksum How to use checksums |
e4a2b53a5965487f81915d0cefb63016ccb84ca91496b2990c1745b13ca68423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / boostsrl-0.4.3-py3-none-any.whl
| Download URL | boostsrl-0.4.3-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69f799ed5dd0ff712f704daebf540ae0b886e977b07c559aa11b3d37718bdf7a
|
|
BLAKE2b-256 checksum How to use checksums |
90a46d3db66b5f7f12bdffa1b8b0adae8e757e7e2d518560277055ced348529c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for boostsrl 0.4.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.