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)

Tests

To run tests, use pytest

$ pytest -x

To run doctets:

$ python tests/test_docs.py

To prevent plotly from displaying

$ LACE_DOCTEST_NOPLOT=1 python tests/test_docs.py

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.7.0-cp312-none-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.12Windows x86-64

pylace-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pylace-0.7.0-cp312-cp312-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pylace-0.7.0-cp312-cp312-macosx_10_7_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.12macOS 10.7+ x86-64

pylace-0.7.0-cp311-none-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.11Windows x86-64

pylace-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pylace-0.7.0-cp311-cp311-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.7.0-cp311-cp311-macosx_10_7_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

pylace-0.7.0-cp310-none-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pylace-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pylace-0.7.0-cp310-cp310-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.7.0-cp310-cp310-macosx_10_7_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

pylace-0.7.0-cp39-none-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.9Windows x86-64

pylace-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.7.0-cp39-cp39-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.7.0-cp39-cp39-macosx_10_7_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

pylace-0.7.0-cp38-none-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.8Windows x86-64

pylace-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pylace-0.7.0-cp38-cp38-macosx_11_0_arm64.whl (4.5 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.7.0-cp38-cp38-macosx_10_7_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

Details for the file pylace-0.7.0-cp312-none-win_amd64.whl.

File metadata

  • Download URL: pylace-0.7.0-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for pylace-0.7.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 c3b934e5795938b3e28a2948078409edb9a54a04c85f1e26fc4a743d5d543093
MD5 ab279897725712ccaf765f33935cca4f
BLAKE2b-256 8b71d1de8afe41f14280544bd2e39c23fcdb39f1611ceb2238794555a23c84fd

See more details on using hashes here.

File details

Details for the file pylace-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6c83ac227657c5f4ad4fc1c0fcb5adb3a62bc0aedf67ed20c0367ce0a1ffaa0a
MD5 4e4ce7d6ee4a5c1fd01ea1303673e069
BLAKE2b-256 686481bb6945952281611074919d0f9ecfa4c915e7c38de60fa55f057db26e52

See more details on using hashes here.

File details

Details for the file pylace-0.7.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylace-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe0de65e331b4e6a2664cf08a0c636eafb4accfb9e036be4851b786b99b26467
MD5 9518ef2b9f5a155956d20e09da352c31
BLAKE2b-256 1232de3f7caa35aff64ff2b30c4bb741482a9c154934835345293949086f89f9

See more details on using hashes here.

File details

Details for the file pylace-0.7.0-cp312-cp312-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.7.0-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d9882595ae9cd5daf46e6dc0ddfc484f6130c7a1b3b5215a538e5b4024e63f49
MD5 a059efd19fb46a6014e85c0f4d093713
BLAKE2b-256 d89e6eba1b0fc03db62efc3c70e331e677f5a07dd3576114dd15685a27f85d45

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.7.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 ae7f48d1da85d01e5fb6ab83d06c14d8ecdbac53ddc42503f335624ee94b0aab
MD5 45f79056ca747d90667c83a590e17ab6
BLAKE2b-256 c418eb5cadae4363ed874ad667d483049d51816e7f94a3415af0c0e2a6bdbfd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d677bb2a3946dd2bbc415d70a087b5c9760dba51618f1115fee99e69b1edcde
MD5 e4a09f2d6da04a44d6d3b801dce6f521
BLAKE2b-256 c54325dbccdaaa3731c79d6cc4bdeb4ad37909b2e7e0bd072f0b6e283f07aac3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5edc1ca38110e0b2aa459ab2872e2331056ab7534dbfb8b7051a46e905fb8d87
MD5 2c09303276b1f5b2e5795f33466ca465
BLAKE2b-256 2e09c3be799c7388596257077ab4fad3d69491afb2710c8b85aa483a3d9b1eee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a1af0ed46ffe480aed0b7af3e695ca25317db7394c4320ce9be0025f67926739
MD5 40b837cd5bc9e1af7c6972812dda9104
BLAKE2b-256 fe0871101f433c63587dc39d3eed7a9dafca330f15fbf2060bc2c632a10888c8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.7.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 f8fbcc8b2cc045d71aa74fcefaee6f05b396f194e384d78419b1aa4c3cbc105c
MD5 f33d17834925c95c0a91bef06096cca9
BLAKE2b-256 441688c4b8bb6b40228fa1df87bf45a774c0c3193ce42e6c76a725bf35fa06be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 723e5099e66f8a08a3f678ecc873ef09d25ecf8b170954375a50eb6f8194ee92
MD5 6dea0aca13e593622321ac515d6f3c98
BLAKE2b-256 e55266b3a788cdca869077055a032c3120ce85ca1260902fee908d95f2fea4e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3f0deb134beaba3deefa970e2148a73f93a3e0db3001a3d88473ba879cb9249
MD5 f378c529e2dccc96209098a12a688079
BLAKE2b-256 2803811367b2a81aa0d15f47c84f43ef2fc8ed140c7a812efce0a422855f2c65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c793d744bd6e48bd69991c4445fe8df2b1a6c2ae2fd26deed300156fe0f260ce
MD5 0737e19e930daeb666e99b41a7c824a9
BLAKE2b-256 8c4332c8f00d363ad2f9a9475b905e157066b8371ca72a2312b8aa440d9730c2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.7.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 1f54e42d5f15d6ef16fe66d84f29edbf5306153d8b8e8b15de41d92e33c9ea5a
MD5 d5f3f652f01760bf5a469beecd5c0315
BLAKE2b-256 3fb8e7d12e484495ab326c106ba85d15908a04e2aca0a408078a86aef274ef8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ab547d1be3fd25f38db870eda47029af1b94b67f7c68db609384345f5f4678c
MD5 442b5a1eba7fc6ec287642c739657e38
BLAKE2b-256 1f9e83e29015f79f1e9fae18b2d62dbc0eb453a77ae96fedd70347982c2f36de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b17bfeba69bcb928990bc89ddb71fcf3e8cd29e480c7329dd72c1b92a8ea8958
MD5 4b5df73b5c6c5f7c4989b782ffcb2c62
BLAKE2b-256 a52968b6f4aac0e14c5aba0fa32865a1d53232be3ece8f92da4e9be1440f355b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 881ee48515e6f08b6a5cdfc55d5c746249284e171d7dd7f5db243c7c1fb61900
MD5 29f3c34cd88a16c2465c394ffea14a65
BLAKE2b-256 1368213be5c7f3eb5c1028cde7a321e2e9b103990cb4def7e9201940927f4f47

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.7.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 eb5227043b003c9147f828af4279f158e01136c1f4d3f5b27ef04b9476629170
MD5 4752f79fef83e29b0a79e6611138eb9e
BLAKE2b-256 5beeda8cae473c9883abaf6361ba11b128a435fb6907e4305b0e600b2bd4aed0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff26f27fd681788a031ae6b9fd482fd00b80ffdc2c96d60bcf17557cf021ad97
MD5 382a3ee4e256ee7e3e7b2571bc922025
BLAKE2b-256 c81d05a53810a13c0cbac52f0fdbb782a2ef89b9278d94571db10b6d2c89574f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30a4729b86df36a5fb7e7d399b42b019a69024cda51669c7e9639a959b51320d
MD5 d35ca1d67e40f072310316dfc9a8258e
BLAKE2b-256 4c7552204a15e86d54c7ad2a00aa43ea6b9b5a94aa7b27ac540b444af21a7442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 36c33239da3599f10d3f14b320916c9445054d20c167bafd6b3174d707229860
MD5 840c155b60158afcc778d93a27f41016
BLAKE2b-256 bb3d4c7c9c41d564943755d1c4f68f068a2a3fc9abdadf3cb83a23b41b817779

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