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

Uploaded CPython 3.11Windows x86-64

pylace-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

pylace-0.3.1-cp311-cp311-macosx_10_7_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pylace-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

pylace-0.3.1-cp310-cp310-macosx_10_7_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pylace-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pylace-0.3.1-cp39-cp39-macosx_11_0_arm64.whl (8.9 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pylace-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pylace-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pylace-0.3.1-cp38-cp38-macosx_11_0_arm64.whl (8.9 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.3.1-cp38-cp38-macosx_10_7_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: pylace-0.3.1-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.2.3

File hashes

Hashes for pylace-0.3.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 091690528a78b98e4cf31d0ea907e9ef0181725562520eb061f59bf8e5f11f78
MD5 04b05372aa383c31e4b840c20a61e465
BLAKE2b-256 55bffba71fcef39e8d988a44d3e5f281e670cb4ee096675cc6fa6150b58436e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c674ee1dc8dcd3979b4311308f2dfd19937839523c77e4bdfb5cadd3ecc9388e
MD5 37d601d9f5fa30370bc6693f0a0e0b2f
BLAKE2b-256 ed42eb67595981f3247f9623a2855fd8627bf0d72de52dc8bd314256c450b7a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ebb1df4dd9f8d587dddf95cb7e7622ca8eb73936e16e739e79e5f32238c26eb
MD5 6e560b956711594ffd59166c3f859801
BLAKE2b-256 b6256b69592db37def70ee8aaf4a5de71e0cb67ef86af09eba5b3c7886f205ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 29f0792d2520d5c908d70b8813e553baf96ec0a546ab66ab1a25f7e059625d34
MD5 4285eabd3fff464024497684de582e38
BLAKE2b-256 f1001eb02a60e38e9a2b620fbefed49ef136cbb5f7fd04c0a1e2e099f67dd7af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.1-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.2.3

File hashes

Hashes for pylace-0.3.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b6d677cf276e32e632fbe5c7edcf1ee484d29e05493d6271712e8caeb5f50b56
MD5 10d0f8323d33d436e71eb5256129032a
BLAKE2b-256 10e5c96784c8fde166b07e8b4cd070e5d73bfa308145d5e6ff48ddbef56ec62b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cafb6e086cde76c1a8396baa3ad06c4e027212af254dfd547ee96f7d6a4a26cd
MD5 0a90f81bd010eca790cdcd092231a116
BLAKE2b-256 a2ea578f93218a37979004aa9fb90da993b04ca3067fbf076b3b576f13c000a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0031f410fcdf6014d13fe3d2bfa2553f12caf5f3c4b0af26099022d50afe4268
MD5 493078897115f6de2dcee6540c1c3816
BLAKE2b-256 358cbd80bf3d30d789f76c8768e6098773f45eb65b263f85f9c2abc6e00aff1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 041dab787c157c510458a31f5de793b50715c578f2e4dd76976267f1a8142485
MD5 cb90fec7f1e773565aefb2a23d4ce028
BLAKE2b-256 434d1b324c283b45782b8e675f020294ea62d65f68bc11b226e2b1dd1dc59ed6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.1-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.2.3

File hashes

Hashes for pylace-0.3.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 12797986bf4de945d80635a0e085ab810502ed6d44c18f6bd226b26a52a5539f
MD5 ad0f2ee792e19a2757fb26db3a7aaf97
BLAKE2b-256 1e3bf16a2200814f9d5b014debaa705f7310c269929a30505c1dced8ff720309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a11a3dc540ea3594714690e7f817f5b3334f433331bd38b5c912689ee59e0a92
MD5 c5f52e653f8be872875e057987e01452
BLAKE2b-256 74607bd90e2d63f1e329e06b6578471a1052bf17781bfcb5d6d32fbd459a6420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7071dd630b413c967c21f870db8f35917175a1d653a1674ea2db923f25844d8c
MD5 a6daf29b920dbb2fcd34aba9925f343b
BLAKE2b-256 c2c0ff77af04a7f26df52ed3a3876e3d69617dcb3c8e72d995c836424883b4b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ddf76157a839ed5c5d8fe8c7e175fb35728cf973c39faff669846a7314998d42
MD5 2852cb718571fc0c10b053bf3ee3643b
BLAKE2b-256 8bb1ea7ca3adade7241fc96c734ac7eba339c3dbef5ea8b111123ef2570d6938

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylace-0.3.1-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.2.3

File hashes

Hashes for pylace-0.3.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 5fc0761298efaf565db880de59b70eebdb7969eceace9b2ee529305c3c7cf79f
MD5 58e00a3b91626c4d573364437e0964f8
BLAKE2b-256 c598827d75173901d61d76ca7a9397464bc358d33400f34cac8db1c2972aa11f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1fce0bb44c0ccd83e76df9f22ff4732be071a4bed1d8cb867eff10214e130f8
MD5 c90f9630c61d55ae0f7eb64aa3740add
BLAKE2b-256 02a76bf7c7223907972b3da7943807c31bf5cfb346491421f4914fb9de66c685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0140a08832e1cb7e45e4aae5aaad473f1a3ef825a1b6546c7e9ba2042d111dad
MD5 c9d53955beb17390646fb53b0c605663
BLAKE2b-256 cedb410825a2c6612f4a6786a8ac02ce1c97e1b4efe7d11568ed82de3cd1fcea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.3.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a5c76a1fdf044bdd075e95ffbc385cc52288ffc05826956ee9e9b57e1ba1768d
MD5 29008918adb5333c09c4c4a2cec2ab7e
BLAKE2b-256 1b444c7974e7e666b27a20e4f79c9741cc73679b47b18fcb747e02ea2b4e67b8

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