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

Uploaded CPython 3.12Windows x86-64

pylace-0.7.1-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.1-cp312-cp312-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pylace-0.7.1-cp312-cp312-macosx_10_7_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.12macOS 10.7+ x86-64

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

Uploaded CPython 3.11Windows x86-64

pylace-0.7.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.7.1-cp311-cp311-macosx_10_7_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pylace-0.7.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.7.1-cp310-cp310-macosx_10_7_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pylace-0.7.1-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.1-cp39-cp39-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.7.1-cp39-cp39-macosx_10_7_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pylace-0.7.1-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.1-cp38-cp38-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.7.1-cp38-cp38-macosx_10_7_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: pylace-0.7.1-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.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 d75b01b68963602c26ffabd8b66c17956ec6fe1b7b36ba1ec47bb345c2e71eda
MD5 57156270e2286f4560acbc65ea57f9a3
BLAKE2b-256 30a15e0539eb2bc744675d52404ca3d32ace4ea7d609946ab43b87d8ffc9231a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5696e504afb12f15326cb7c92d3cb4b2db785e564ef9e2b33e84efd4adaa6524
MD5 74a42469e0d77b3786c9af5abbf58705
BLAKE2b-256 858d6f639ccd47aaeb53a3ee88a8172ad174aa9e56a2d10a837544b0335cb88e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7762eb0ef37a9df9ca64064b679717d1151445d174b5e15d3a81f37e2751327d
MD5 84c31bba14da4ffb997367698e95a4c9
BLAKE2b-256 385c43d94f67b79616b8afa012cdb539dbf5d51108c6cad80a44306c5d373c9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 06d5784303a1b67b29d06de8a2d1044e688a050f819a11b0ffcd7167e620732b
MD5 a3e1bf04576d217fdaecdf8d55f947ed
BLAKE2b-256 5450dc7d0411bf8536804dab927d67f269c3f3f9d9d33a79a2f04031717e66d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.7.1-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.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 03a64c55fba1ee508395965be216e276def88f70adc56addedeaec6feb96a7f5
MD5 9f07371825af2776be02c9e33636247c
BLAKE2b-256 c17b6269f5867ce235f93b07961c72068132071442eea4c199b416dfb96f2ad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 528fe0633a69694bc68599744175d48972bd78fc49a77ba5ff389731b4ed043d
MD5 6afff950dd4200393f369113a8b2a846
BLAKE2b-256 ea26a8d86900107603b72692ad36d647ef5eaeed193a59c43a66dc38ad5f5a77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84dd5c4e9adf2a303b7bca5a4186eb85f7ab8c59556c552e1df20dd7dfbf60f4
MD5 6446fa30182e78bea30a29f5663b067c
BLAKE2b-256 8ef7bcedfce81352987b0b42f1b43eebd906b4f678bf9f2d48270bf6f187b46a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c1afdf68a2f422fcb0b07cf3e9ba4869d1db9093a828335eefcb4a927ae78ad5
MD5 1e894008bb7a1f6df6ea51f5288e6243
BLAKE2b-256 853ede6446784235e466af1d2f22c2f1057a78cdbcf6ede472e4b2e8b46b55d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.7.1-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.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 db982aaf696b4050e04bbbd6c8bd76f8db0dacf67c8b589412857bdc61db67ee
MD5 d5d48873105515b00543b6f885a7b98a
BLAKE2b-256 84cd353a98fffbab23126f92ce4c4a33fbca33ba0b4a481de156090e79577279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8269c326e5b4f61d6df6d3dcbd6f0d15e04ea0e25bfbb58f86cb7fd1074c0e1
MD5 535406ec56f9dbc0ff9cf4f837b0623a
BLAKE2b-256 ca3df390770c3b0a1aa94cdfc027ec43490a44f9a4e93bc034c62fa41863beeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae11201901395368744262a92a68a105000b0710c173fe37370471cff2def2db
MD5 93e1544cbb13ede241765d1ec02001d6
BLAKE2b-256 f5353aa2080f590ceab4857e6683d44272bc93ef49ba342ea757f2cf9b7cd9b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 115a84f91f49bc5435d8f75b8fb24db940f2c30291b33bff9b05565d899a10da
MD5 c7fcc3b1dfb7ddbaeb1c3667a9f156fd
BLAKE2b-256 4efb56e868e5b2a0feee12fef29809e58b1c75ee3d5b377125fd1104e5955dd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.7.1-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.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 5bd97ef7b0e0ba658f17fceecfed6206b1ed6f4e1b33ef8fd73b4f89189362a0
MD5 968f410612b997628f46598503f900c3
BLAKE2b-256 390e8ad165677b121d2e21dd9511a4a52f3dff2d7a5fadd9defa6a8ffebdab46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da609a0f89ec5c53ba5ee39c5c270b2d1dcd337a5325676b0ade6d5519d87ab1
MD5 bf947134d2ebf916d3a6f14bed8853c1
BLAKE2b-256 0fde37361e2e425bfe06bbfe5f9c59595e5cfa53411a05b2624922f8bd948c59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85188bd15b53db995cb207dd17244db3ee4e53c56587dfd680a8dcb30e401823
MD5 3929ddd45ee03ea9b1644d6d872c13d3
BLAKE2b-256 9d4416e7b977361c5111c789eb27c683f5f866257a0abec38c6edf18705cfc26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 47883655075a1cd95e5a1d4617bc39949f678cf5538e69464c18cab549bf268c
MD5 66ac78cca25c4363cc8582c1be82a743
BLAKE2b-256 583ee40079ce261db45e535159d3227019ea5f62090b37cd2720884e940199db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.7.1-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.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 015ae55f054d387d9b5eb77b4abe91d0d6f4991e280de53311ac4325c44b6846
MD5 86c8a7e75eff21a12e303ef8fee68770
BLAKE2b-256 b5dead5e443b1527f977e610b961d88d66c56b4b7a5a121554fb858bab1dcb45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28a8fa9703043d9bc9380f05cfe1c3f3cf3e6335e53a988f012252b5982f011f
MD5 037599f15874b2cd2852930384642530
BLAKE2b-256 15678422007b463299a087be669bf2d3d0aa87d3a33e57bceac5d7fc66feb749

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05dd90715d6fd71a4a5d301ddcf8a1e5e30dd83b8fad7ee4e4ba8c0a00b7d3ca
MD5 5ed8b9ef03c48747efd815bcfd902cb0
BLAKE2b-256 2ae8728c36f62e88fcdb6571a5bd52e39ae48a369de9a2e776a5dbe474a399fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.7.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 805b34dac0b5a8c98ae5518a9bed2fcc697ae234ffbd2b28d47c7b77778474c4
MD5 50efba6108963a1396895bf7eb008eda
BLAKE2b-256 bf93ba6ca41aa677c6df49404abfc4a88a5631892882922d3a0db97382ccaa53

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