Skip to main content

A probabalistic programming ML tool for science

Project description

pylace

Python bindings to lace

Install

Install latest from PyPI

$ python3 -m pip install pylace

Install latest from GitHub

Building from source requires the Rust compiler (git it here).

$ python3 -m pip install git+https://git@github.com/promised-ai/lace.git#egg=pylace&subdirectory=pylace

Use

Note that the engine currently only supports loading from an existing metadata file. The following lace functions are supported:

  • rowsim
  • depprob
  • predict
  • logp
  • simulate
  • append_rows
  • update
import polars as pl
import lace

# The required files can be found here: https://github.com/promised-ai/lace/tree/master/pylace/lace/resources/datasets/satellites
df = pl.read_csv("./data.csv")
engine = lace.Engine.from_df(df, codebook="codebook.yaml")

# Train the model for 10_000 steps
engine.update(10_000)

# Predict the orbit's class based on the orbit's period.
engine.predict('Class_of_Orbit', given={'Period_minutes': 1436.0})
# ('GEO', 0.13583714831550336)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pylace-0.5.0-cp311-none-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pylace-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pylace-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.5.0-cp311-cp311-macosx_10_7_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

pylace-0.5.0-cp310-none-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pylace-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pylace-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.5.0-cp310-cp310-macosx_10_7_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

pylace-0.5.0-cp39-none-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.9Windows x86-64

pylace-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.5.0-cp39-cp39-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

pylace-0.5.0-cp38-none-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.8Windows x86-64

pylace-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pylace-0.5.0-cp38-cp38-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.5.0-cp38-cp38-macosx_10_7_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

Details for the file pylace-0.5.0-cp311-none-win_amd64.whl.

File metadata

  • Download URL: pylace-0.5.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.2

File hashes

Hashes for pylace-0.5.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 8f2d11103930a90694dc60be252afb961c5a5b953d48eba6c544eb99af222439
MD5 7f950a12bf4749e4108747b8b2ae237d
BLAKE2b-256 e17a1529ff68ee2a8e2e601b8bc56583ddde4eb2e5ddf26f085118fe105e6c83

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ce8ce7002561e4967ce2fc78ff70567e3766f513c51fca3a3fc2fd24b52920a
MD5 e052ddfee010cfdea29cc150597d8029
BLAKE2b-256 54cab148b373ff330a70e6977ecde62e13dd7b60d6b9b2327319659c69ffa783

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07363949e88a1afb645998c916f25b6bb05006ffa63f5bde9c7a6a4489a284ba
MD5 f3fb0747faf0d9fe11a5e4903f68a6ba
BLAKE2b-256 ea70a0794ec5a0574074df8a7fc966a1d89ccccbc51c2b2fcf734c90fc2e4483

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 300f8c9bd51ed2655d7619cfae82b67f0cb9c180e1a4bc7d1766b74b7c86d933
MD5 9c1e39029a45444050acb09a935158d3
BLAKE2b-256 c80645447dc623245df63ffb69751001c7c3def1a09e0a8f501c5d7b01269908

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp310-none-win_amd64.whl.

File metadata

  • Download URL: pylace-0.5.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.2

File hashes

Hashes for pylace-0.5.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 52cba00f3c0ff9d8efd4042755ecddc0c909b528d17eebad320ab3d7be723714
MD5 aaefcd626890879d1372c66157e197da
BLAKE2b-256 542e0c08a0b607a01e1c0e36c9277e1863e42e5db7109b1f31e2af89be7ef5fd

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19e635ad7089f186bb82de9f944272b18b8fb8c830a1974dcc5ee19a2415e939
MD5 efb641436c5ea72c94d4ef06c62634e6
BLAKE2b-256 fbee8e37c3d68ad725c88547042b123ce3b88e1460092043eb0afa8e514817e7

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afa95b42e8def0e1f8aea016855ebcf0a6e648e617cd1cf8546a30c3537220ec
MD5 d7f8d678100b1ea5c95dd65b60124731
BLAKE2b-256 ff98686dc9c6dd454ffba59873ddeea4605912e3b008fd9e9f4c29f3870ffb5c

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d102a6f3102f0438a0c12f5d3f78d03f406fd503329c6c4c0ced13eb3d4839da
MD5 88d24ef5562cd974a3b3e19ec0947976
BLAKE2b-256 515b9cdb1eddf73640ae8ae829a2261a188ab873ed90fe97889ad65434a8ba58

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: pylace-0.5.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.2

File hashes

Hashes for pylace-0.5.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 fbf834cc68106ff3105a1233235983670d5c171415bf15f04ebbbc66eb5ce607
MD5 38966607e87f24ae97670e748acd85f5
BLAKE2b-256 d218ad1244d4c8ed05bf1d2eb8e2e03b6476ee8e4c19d7dc6d88888811a2a01c

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c0062d963d0ce07b9985a7c03adbd663c56a49468775b3ab10b018f425cad38
MD5 3ac2ea36b9e766b28a55f0a70dc71b46
BLAKE2b-256 471d8ad4ef5c1b201429a752bd68611e8ac0ed0053a71e78f8f2fa7ca885cda1

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c91f46ad69ed53c7c07da228e74a41938397527515da2c0a36702bd809226cf8
MD5 7ce12a64ef83f870ecf3461b4e397df7
BLAKE2b-256 8ee70dcac770cb561b5f872a3d3c9adca3d0dfe1fb9a11a22aca39454e1460e7

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1741b4d4172af59ef02bbde3d2863175f2790dde2eadf46c2ee2dee3c1c1d9e8
MD5 face5e1891daa0d0139c754b5bfa39ac
BLAKE2b-256 59ace7fa4185f13d5c7de39ff08ec437d3daa5c0589e462fa89fa8af3cd35d69

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: pylace-0.5.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.3.2

File hashes

Hashes for pylace-0.5.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 5980f9f5c823ba120480acbc9ee0a595e02b7f98d7bc976c6a269cb5c30e5d14
MD5 2ddd7265c3b19359ea08311a8df45a0f
BLAKE2b-256 0a1afb4d14dbb45133d1dfb8d194479a6a01bf7612fa65b61a63e3c77e2d5821

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6418dcb206d85acd8da8d27533f84063e133e3b831d2fc597cec14930374e24a
MD5 dd190f06c52a2da6603f6b97d6d89d62
BLAKE2b-256 47caa02b100ce0d71d187e38bccedad04a4b2c85e18b32b1485991ece0d8925c

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2293cf29ac96c1d7f03a5393419d4426ccfa325fd936601c3f536fd91bf5e9e9
MD5 dc3b4bfb856e1024a9cc294c555efb0c
BLAKE2b-256 2d128ba2bd1b4beca76501268d9bc213848d1d49f3bb459d1e576898faeb89f6

See more details on using hashes here.

File details

Details for the file pylace-0.5.0-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.5.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 071c6e05767a348a8d8862a466a1c453fca882f1d1b5b7133832c375227bfcbb
MD5 5d1f5505eb3184508faeef49cec8863d
BLAKE2b-256 9808fd0cb8df5fd02893462055a6aa401a084d5cb0b27634375f541915c7755d

See more details on using hashes here.

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