Skip to main content

License Travis CI continuous integration build status Code coverage status CircleCI Documentation status

boostsrl is a set of Python wrappers around BoostSRL with a scikit-learn interface.

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

Please refer to CONTRIBUTING.md for information on submitting issues and pull requests.

Versioning

We use SemVer for versioning. See Releases for stable versions that are available, or the Project Page on PyPi.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boostsrl-0.4.2.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

boostsrl-0.4.2-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file boostsrl-0.4.2.tar.gz.

File metadata

  • Download URL: boostsrl-0.4.2.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for boostsrl-0.4.2.tar.gz
Algorithm Hash digest
SHA256 2c30afcc5c67cbf6e43429771e3761328dad385adec6b355ac67ba72581e9b88
MD5 f95611b2f10857daa99eddf72aed5653
BLAKE2b-256 651929461f1e5465ffd57335d3896dc3eda94a6188b9ab698785bda6e4277a05

See more details on using hashes here.

File details

Details for the file boostsrl-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: boostsrl-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for boostsrl-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5347ba1f1e8b269074dff9bc060a5e8c6ef60bff1a56f52d5bf8e2175ed190ad
MD5 716769c61506a8e13928de4857e48707
BLAKE2b-256 402fc382116e11c0ccc0146d64bc6fd61148af76ec610ae218bc0b6bdbd02c95

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.3

2 files

This release

0.4.2 This release

2 files

0.4.1

1 file

0.4.0

3 files

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page