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

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pylace-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pylace-0.3.0-cp311-none-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.11Windows x86-64

pylace-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pylace-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (8.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.3.0-cp311-cp311-macosx_10_7_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

pylace-0.3.0-cp310-none-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.10Windows x86-64

pylace-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pylace-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (8.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.3.0-cp310-cp310-macosx_10_7_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

pylace-0.3.0-cp39-none-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.9Windows x86-64

pylace-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.3.0-cp38-none-win_amd64.whl (8.8 MB view details)

Uploaded CPython 3.8Windows x86-64

pylace-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b18c40a6bce49740128b667797765baa9c78c2147fe7eb2ad47655f3f8386399
MD5 040540370b1029f688535d03f6acef87
BLAKE2b-256 c1050dfa0f614b251bb0ff2bd638709913987737e96f0774038e79b1bc7479ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0620105bfaefd109512d2deea28664c438783fe34f6d0911ad5db2c5be2d0fa7
MD5 694cafbb013a86c169f49133781fc9fa
BLAKE2b-256 20e52e887b08c2137d52eb0062a456896589aed6b906c512094aab3afce8b982

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 004a9260c08e9b10ec2a17d2e0a152ed7ebe6e29bdb6cfa4d8f2b3e947aa9b62
MD5 a5bed65e127b32d4d59503bee48ac694
BLAKE2b-256 a44d7586b4ac76f5b1d64499a22c307e8e14d59a3c7fe50c42a57ac04a430082

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bcb6b9f5bc32ceb0d11833d7ebff3b5a1d157ac181d182cf7e05485f7d8e78ff
MD5 93161d30d959a1b3b99867e9b3e96f86
BLAKE2b-256 dbb554ba33073b90e6fb37e37cf66323f9a48a7176325403cc7f13e25dbf6497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 8.8 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.3.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 d8f116fb7cd32f93a9f8082fcc46ceeedf925b34dac4570725b38d36111c4f31
MD5 8de170ea64b4d977f51cd3d0c8125399
BLAKE2b-256 7edec4f819b9bd049875b8e26a9ca601a719125aefb60442e0502cda102d6d63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eaffb266e4287d210eba6cca13761f8233b8642e6e7a0e6ed2f687cc6b46cd81
MD5 a9381cd3a27b98d083181d5adb4d9308
BLAKE2b-256 af453ff04a0d785a94c40b04d02b517613a18ab90605fee0e4170b80e1fbbd18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e66f1de77ed1018d6f21358fb0b4b31dea4a298880533617d2eaebd40937200f
MD5 f6ee08e54a92849f62ad342408ef902a
BLAKE2b-256 9ca00d20d23138d45583ed2777683102db78eb469bedb4cdee422c27e3394548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5c2a2ea8ca72d1e4c3b241eb475cd3791dd229e5edbb41507062a6416e1bb46e
MD5 5a2272250e5a520e1ad06d7376350f27
BLAKE2b-256 ac3ba5c2e11a57273a7385a735577a9b6f3f2f8d3b02b1d103a7c56b3f94ef22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 8.8 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.3.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 a3aac47d15b8ac606eff4ac27d15067e616f0910511294ca3304d9ce80dda626
MD5 0ef1a3688d7d768b13b9d27d22157898
BLAKE2b-256 0e12429397ea15f37d94795bed1dd26c00b978267d2a97af2f66a167dd667d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95b3fe4648839d7a65b3ff9a6cbd504e8f4ea7a14354a3088f8a6bd600448197
MD5 5897e2facf1fe2723aba929c6afa74da
BLAKE2b-256 ee86e5f11f51b3cf60101c80162476f0cd3e83eec75694e738ce85c324c9d471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01e94122ffd8e02183c418606bef630d8b9769e67a13455a897b4bfa12bc1ba1
MD5 9b58b77ae89daaf9059ea22b99786d5e
BLAKE2b-256 59ad0c0a11d7490471daced07114b1564714e723ad44fd2525c16a23405dec58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c600bcc56551b41b047a640a73d5cb4b344b40d483531a87b18d8d248b8a38bf
MD5 1c2fad15014afa1ca6b7e09abb0cec56
BLAKE2b-256 b4dc3e7d401a9310a3d977840166dcc535ee2652ddea46d7dc5dc8c4f56df474

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 8.8 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.3.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9c2df3b1a723221bfbd511ecc5497abe4a88dea43f1730dc429b4bfc9bd741ae
MD5 17d190b32cb86123e43dc0c5cb8ad801
BLAKE2b-256 01693d0cd4ea16c5b5cec94bb7991f4699dd362a0260fce46511bb869190c09f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bccf35a7535b158c766535d09af0d4bbe4dbb51682163e9fd3e1b711d3c6b64
MD5 a206cb741e018e4b5068ae23709ea621
BLAKE2b-256 c56035e5312157edf656c9828bcffa97b1a7e285f4e83894dc2202062247156a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 8.8 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.3.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb4d5bea4a8c61d01446f6b8638023b54e1a43519bf4e105e8bb9b7f47385669
MD5 6bf00027701f1edc143e80f8bbf7da2a
BLAKE2b-256 8c073f9a21f87b3c753c906ebf984412b52993a7a629301e6749144dfa03dd22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71ca26c424015a183e63135de08fd5dded6e5bb89a3d00c7cf14e886a7106d08
MD5 b190527b9fe2ab583aa8bde59e87bdf4
BLAKE2b-256 53780e39390c42a1e723f420cddf384dd6f0f32e1544b5018f75b0e70ea33920

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