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

Uploaded CPython 3.12Windows x86-64

pylace-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pylace-0.6.0-cp312-cp312-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pylace-0.6.0-cp312-cp312-macosx_10_7_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.12macOS 10.7+ x86-64

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

Uploaded CPython 3.11Windows x86-64

pylace-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.6.0-cp311-cp311-macosx_10_7_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pylace-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.6.0-cp310-cp310-macosx_10_7_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pylace-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pylace-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: pylace-0.6.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.6.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 070bd0c3ed283ad29136727f7f2ccc0ff5387732fbad134444b86790315d99ae
MD5 17aa399f233219756f4d1b5aad27ff2d
BLAKE2b-256 36c9bcf26e7e26dc20fa23e9396b4032b3991138eb184f302d4a5586335d694f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b20d9f6348d3433492b8e6734e156341aedef76031e5390672f7240727afbdd
MD5 04cc39697c8f271934ba1dbfc8fa1788
BLAKE2b-256 706afe332501f7e73d27b51c0459692ad01f0f04478d0635660ef9b68040e201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f13eff961295466b77ee350f38fd29eab099091e0e7728d68c20ae380da5277f
MD5 43623e51d23d3860e81bc77825a770a2
BLAKE2b-256 774b552fbe748e77691a940fa5c666eac25efc7dbbccc439013fd35c374ba743

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 22a077281ce4d7cac09b4e661853ac1be7103eb15008512cdd3547206137ae1e
MD5 1c33926d32be9fed065a1a2e32199ef3
BLAKE2b-256 d24d8b96f7cb353afb74190d04c9a9e4424def222ea4fbbf92cd33b005a3d26a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.6.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.6.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 a3bdc10b5aeec0665e089e723f8626b62aa09057677d5b13a8fdfe57baae3a6b
MD5 085fe691d36f45ff456ca499dc43b0dd
BLAKE2b-256 31c9a73688a294cce119ae9cab8c651331b40ecbf6d668f1bc5b4fbd1d177d87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebfc0ec470a5f0db90d7702125b701cb729deb24dddd290f03eee7da846c7d66
MD5 28ea68c1aa8971135dfdb2db0452f598
BLAKE2b-256 5712901c306f32ac1a6ae89d76f076af875ebaa6fffa8a2f81e5ebabf1517839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 815cca54deb9c0a86635cc518085a5e0edb1fc8fbc38acf787d5a56357d63d7d
MD5 294f4c79c06d563f6845730fe3bd2f45
BLAKE2b-256 fa48b0d010bd2c4580e472580979c226c9c9093c1c2cafe17d9c11ddf13ea967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2857355c2ff2b905b6515e1b88dcc08d45328b14c29f81b2751b9bdb3753ab0c
MD5 b38ea94ae8e1e58335e883f3c1647284
BLAKE2b-256 c5aa6e91934c6e43b135fbc50a8873952659313f7cbc1a155ecbcc15c6104ffb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.6.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.6.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b89916368f5b8b45f1fe74e8cf4f3e36172cc42aee4db82aaeb2150a90ba18be
MD5 95ea7620eebefb867a0cf26309616d84
BLAKE2b-256 46ea4c1486fb4aa9965936e59522e1630cdd638e489d9cf31069c2a71d4349a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14aee7cee4c7344cb1f701cf8c76ac6f8d496d06920ad421b53863f9fc05dedc
MD5 6d3e0b96daec6b6007d16035f4266a2f
BLAKE2b-256 81a9ce59ac1ba10c8d0837385380c3cacbb69c32efa8af7179f5b914967eaa8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e87f4ba6c098f49f0e254f07d80d16e2a389e9fc953ac1e380cfe59982ca928
MD5 3e7864bb94213c11c6bd40a8042aea5a
BLAKE2b-256 4446193f1acf3a5ce96121c757735bf5b29e6a765f46b1ddc56a2571bfa12e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dbbb9d4a54d79ba29f28f3db153800a8bb5d2e214a8532159b53773a6cdb1a41
MD5 45aad7417857bd8fd88b5d8c7d0dce25
BLAKE2b-256 cd94c8086f4e770ed175ba7597fe96ec84c805e03bf1bc5eec709368b55ede65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.6.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.6.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 2dc20b011b0f55f8fd04c143c18b5d144d6080bda684b461dc6ce99920b80930
MD5 f8ba7d9691925f66f495292d6f0db407
BLAKE2b-256 b9c9a936daec78f1e685437b35270faa3ab43e1089bd8bb5f945ec1f78ad5bec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f49494088dae5b55930923a4aa6e7702bcb70f4a2099d562f8853070dd77def
MD5 a23f8fcad59f75e5a5f487681a76575f
BLAKE2b-256 f335bf2bec9532a0d0c04abffd501b8638ababc7b16cead337d6f605a59b81fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d030503c8ed719e45e93a4a692273615de305a9309f41937eabfb2f9d42d8c80
MD5 dd0ef982d7974878694b64674ee025e5
BLAKE2b-256 c5cde83c9528965035e6c2d8c324b7b9bf3aa69e4a42cc5b60eace61075d44ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6afa7fce47956cd2ab92dfd7721c098c3faa4770a8211c4b6c9a65010fc671f4
MD5 c170734a8ae39421bae2915979eb72b7
BLAKE2b-256 1c9db526264cd677170b42078c405d5bab6fdfd512dc55f1d831d6ec7a0c0ed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.6.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.6.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 269324a442fe373229b256a0a1ba685b865a5816806238796e0e4bd25d9af54c
MD5 1051cf1d56a1c0c17d7974b6a413188f
BLAKE2b-256 8b6863508f76b4f0758bd73bdd3dcc6f1eb2caff520f770f8eab2005510846f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8bb523be0c9b7926d7089bc93038f1e783f4c7b6b7e1e64fec76d8b322f61cec
MD5 2616d37947f93973aaac754ad220b27b
BLAKE2b-256 8fc3cd432f1fa7d074de8aebe934c1b8718fbb280a6e9d19cf01bba6332b895a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5852744c12d079a6d6c8dfc7822a37a2bb44219f5fffb44889a0e13be9a161e1
MD5 3c3c12f530e44af99e7b00b68580787b
BLAKE2b-256 477b6d80012c0f979d461435b6534b58ccbe18db0d762ff5c6eebbdce469b5d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 175925280c4c8842dc8e4eb3c6b2852aa9e439267006672fbb91fe732dcfbab5
MD5 42276873ce17a40eec8a46ba10c495d2
BLAKE2b-256 d1d92279cf0164aaa070eb0fa3ec7f2ab491eaf308c469188ac94da4cdd907c1

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