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.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pylace-0.2.0-cp311-none-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pylace-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pylace-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.2.0-cp311-cp311-macosx_10_7_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

pylace-0.2.0-cp310-none-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10Windows x86-64

pylace-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pylace-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (8.6 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.2.0-cp310-cp310-macosx_10_7_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

pylace-0.2.0-cp39-none-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.9Windows x86-64

pylace-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.2.0-cp38-none-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.8Windows x86-64

pylace-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file pylace-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8d99c5d1572a73c67655f67181eb6f37358477dfa4f616a62cc4cefe34edab8b
MD5 369f901c383015ed9dde20b9f6890cb4
BLAKE2b-256 daafdd451a5d48dcfd16f18aca0ace3e8dcbe81817fe49735ae38b1db9c076ff

See more details on using hashes here.

File details

Details for the file pylace-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e3dd07f627269862fa2f832faa6a811d62924e6dee0b409dd774f18b5493896
MD5 abe432ab814728c6421f9ffe59d69737
BLAKE2b-256 14f93e2fec0965d959d9a55237fe75e2ccd90a7c310e12e8736f97539b3b6c9d

See more details on using hashes here.

File details

Details for the file pylace-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylace-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a5131e49fe4c0f24e0f4ec9651cba7a6b3ba49fcde25f322f6ff5584cc96a23
MD5 73d03eac764b95a0bb54366ee1b4e4a8
BLAKE2b-256 65dd13bd79f7cfda0fbba6cd9893be56ec7bb76da9cc558baf3398e2661b5acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0247cd5326a27743bcbaba65704ca8780114642e99e9baaf635e2e623b6cbd43
MD5 d291b6f46980c7341e33cb12636b90cf
BLAKE2b-256 882cedefe5e771a1dfc1e8261cfe51a3def265abc158dc08a2c4d947f65e49c4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.2.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 01263bbc507abe0173b294c580ea82a76d33111b319e0a9f4fa14feded86def2
MD5 2c8f2981150936dd825de9e7a7824827
BLAKE2b-256 f594d10da062f7706c0dcf8bd8996525fc7e771278cd858cf3ee40fc2b2c075c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae59b642b5b5094cfa356d808d5282c5b330fa72889b9aed165274bdca0291f1
MD5 80c2ab6bda2e60a9846175f8096455ed
BLAKE2b-256 dd48bd8f217a3703585d2e320c726d8e7f93cbc8b730c76d2b48cf6d122bfc11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93b82069b7c7a3399620f7e0ba068a3f8ceb00eb33903d03fdc52a801e8f841a
MD5 8b61308d659d666d2e0060f0ece38350
BLAKE2b-256 db80335d3ab11fa2741a0b52bb5d2547a5fb57d4bbf62b822085fd8b052dc771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 828e0dbd1a14754a09ad2a3333a39bbce2e1215aa8cb4398a3f9af95595f9f7a
MD5 31068174f2638868589686242e9e8e1f
BLAKE2b-256 305e4c9f354c86720701b8a2ba930f009d0381181012afbe963fa84a00abd08f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.2.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b77fd07796a148ef7c1f2f578b1ca0f44fad25fd9d3470835a30aa9d2f4d60f
MD5 9abf9ff3a90e5e2119694eed5d8cfac6
BLAKE2b-256 d18d760198ea536208b149e874d16ff07c7e718e763ddd6961b25c5bc54ca55c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1af306a7a6435ac878aa1d1f032df02009b41892c32de3d955277fd208123b6
MD5 b8c6e674ff8483d84b5d5d6affdf1dc2
BLAKE2b-256 14e6091af0b95ac258783811b9583e354e17acb82358f7607cbd0336d8a60051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c29ed7d9590dcf87e788cdaa9e14be9ddf86f872e476ba3d9ac4c7f99c1fb833
MD5 1901b1ff4e80494a57153c5bb5828a38
BLAKE2b-256 cb688e448bbb5a42affe4d66d459e6e91594e0ddc99c85edf2bbfe34cae23d41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 748d4fa234b88c0bc7ac4a3da4cd7e77942b533465d19f73504674fd0dbeaee3
MD5 ffd6d5d2909cbeb2b91f3ca656294ff9
BLAKE2b-256 3f530fd0580fc37b90b30303dce4a7f698e920f2836d23f7f8c2331de177c674

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.2.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 e0787d90d970d9aab3435038c59755a2d5a21a7866c4af4ac1f7e4840b2adced
MD5 da92b9bcbabbdc3461421ff0ab3bdd92
BLAKE2b-256 cfb2de7489801c0e235309124e10db4b198e7e9175c949adc7b106ad652783c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edef071d8c78be6c9c92452e289d9270043b09b9cc8feae78cd24eed20082110
MD5 e89910c029f46c86337fdd87d255ca84
BLAKE2b-256 ae9eda153ccd82efe1d21889ef68311482929b56e6528160326054e883ba2115

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.2.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 527370499c7a14d987175d5ef0736cbd9609ad043c8a187ee4ce6ac993d7a38b
MD5 87804f2965d59bac87da05888a13915e
BLAKE2b-256 0effa2a4555345d3d25404a5375351d82a385bc618accb216c888819ec5c1142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a061f2c5208c978d7cb5c888e9de41dfa3c201cc30094fe7e53a6ade7b66003
MD5 fded17f290a9fa74c0ed5f6af662da3d
BLAKE2b-256 aee67495fccd0626eda550bf6a349830ebbe6e32e7af6e11f6e028726d8fc7fe

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