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.4.1-cp311-none-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pylace-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pylace-0.4.1-cp311-cp311-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.4.1-cp311-cp311-macosx_10_7_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

pylace-0.4.1-cp310-none-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pylace-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pylace-0.4.1-cp310-cp310-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.4.1-cp310-cp310-macosx_10_7_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

pylace-0.4.1-cp39-none-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.9Windows x86-64

pylace-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.4.1-cp39-cp39-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.4.1-cp39-cp39-macosx_10_7_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

pylace-0.4.1-cp38-none-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.8Windows x86-64

pylace-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pylace-0.4.1-cp38-cp38-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.4.1-cp38-cp38-macosx_10_7_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 3bc5593b18e51129ceae14c4650836b02021c09c65e2170714a5c1f587965d1c
MD5 1be36d0cb39176f459214e1a54035a53
BLAKE2b-256 3786514e7ed99c8d999843492e917ec20d0759e003b07274f9a19d79e1fc224d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 467e25efa7b881ce2e09fa918be9f269530f74e6acaa3402ae3a97ddfd488f68
MD5 4b8de15b17790ba0b8c274060a67f373
BLAKE2b-256 bcb42502bda9302e334d8eaaf60d76648c7b06920229aee5f56fa405e2d9defb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 415993419b03a9ba4e8dfd261d78341b4302ab9d1d3e8dcf65a3aea3f58ac14b
MD5 f302fd40ad4312ccbb285b1dbc96f00b
BLAKE2b-256 0f7d83446da60654cd9561e048de3b3436a3e747b9e3bf701122d59c00fd9c3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bdd899146754dcc905f6ba193cb7bce3dde89bfc3b3dd5412392cce414f1230b
MD5 9d41a67d0d29e6000a7aab29e20b126b
BLAKE2b-256 a96054f11fcd2243611772439c7aea666f8de9d089d9223829be28edf5bb64c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 8b9028c4f7cc2c59f66e210f95eb79b6a786c1488a81d4aad06b82261132c612
MD5 11a424d667f4954692c725746e6b0728
BLAKE2b-256 f031421137a4b82be1b6916ef1bfa7e46a89c7dc393ae93acb42b8c800894e9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91ed5c62dbc1b022dc5dba32475c050d945a4f246fdf7a0321fce5fcec94c509
MD5 90c786aa6ac12aa0a19b682b730c0d67
BLAKE2b-256 0123d39a2d6557544bbb07c7854938cef081dd8d0fd4a510b966c45aea56706b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea9889de5c61f2279f36119718edbe1f7fd942c47aa93027de417d68f9598243
MD5 e5296839617b9fefe6ee4477de61421f
BLAKE2b-256 781585492cc743b8efa1348d50cabf49b31f2cf0e04ff794e2180b1aca41affb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c8bf6bd3be1b35843f0f688e9e1d5d88f89d97725ae04713466e7b2ebdf21eab
MD5 b44c39f8eb0be4b6f2e0bd4650ec717b
BLAKE2b-256 6d5f030704849416533436eead213feb3c76dc43f3c089ecbde36184d97b8a07

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 31854448ea70c5288b6595d0c861a93eac2bc0806fd01aa9139c47aa5ea1bb4f
MD5 acc045d20230a195f20d2b313fe933a6
BLAKE2b-256 845abd010bc0924815569618fd56b57eb41a83e0f1c5e0d07860eef2ec53c4fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c07b40aaa03303c42e0a3e58177d8fad92880046e555de8958bdbfe001a6f52
MD5 b8dc9a7d9f2cc98828ecb13a10db0ee7
BLAKE2b-256 8e492834d7026ac39add4142a2cb5ac0f88db38187c3a4a7bf036835594f1c7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 489248c03a382ab55309a28bd654ef467dfcaab23962d81a72f27cd1e5fad808
MD5 700b03dd5a58ba197230f3f69028db6b
BLAKE2b-256 5edcddcec023c7c2c7abc1f14e7da3ada60ea9095781d749adc384c58bbe7666

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 648734e377dd86b129148734ef38fb06f271dd82234a5d2b56251abafbbfedea
MD5 70d9137025e777de74015c3f8c6ed775
BLAKE2b-256 99ab6a225c57d9d1f9fc9bc0aa30950aac6126d7156400fcec3b006447659111

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 a0000ef4d88c2f2c0335f4b0b847164a558a5f3a417bbc5100fabcfd282dc195
MD5 4291830956896da89782b7d4743b6ab3
BLAKE2b-256 f269f5664eefab0ad853b33eacd714daaad72fa4d1db82ea780af8ed6f754ab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2580675a4b2f0190b57a09c2e3c074efd436d686ad69d2da7be0cbeb3866b2d9
MD5 9318376570ea9e07a760acffe85d7381
BLAKE2b-256 922ef2810fac663448abd3eac8cee09b02ff40b530c48dcbb2b9770a4dcbe43b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3087eccbd4be19c7571eb2d8870b6d15f34a35dd4687bbb0da32811d452bfcf8
MD5 8a828eaf1a79d8f02e2ce3b23a176f5b
BLAKE2b-256 0da1893f53f978d0bf2445a90195d73bf46c75eb701d55a04b8f3bca22078693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dcbc14b082d385f9f6487b8e9292ce0d0d5c05367d7787a8dab2ef1cda49c107
MD5 4b6846d36e7444ef47033891970a572b
BLAKE2b-256 fdf05df9b85671a782eecd65e433e38aa7bb737f1e1cc297a0e942e050bb3c1e

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