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

Uploaded CPython 3.11Windows x86-64

pylace-0.4.0-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.4.0-cp311-cp311-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.7+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pylace-0.4.0-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.4.0-cp310-cp310-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pylace-0.4.0-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.4.0-cp39-cp39-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pylace-0.4.0-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.4.0-cp38-cp38-macosx_11_0_arm64.whl (9.0 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

pylace-0.4.0-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.0-cp311-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for pylace-0.4.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2dd2c051b60ba4f4e919220963e82ce8923796e9feb97ff7bc8bb72a8b56ece
MD5 b058b24e9d2d803df0cba21c7d9efe20
BLAKE2b-256 0a07003163ad5a48f3a5397f901d599f06139421031387aa5bac11472d60116e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ed92b12b2abd9366d3f757cdc47d69c12af4ad8d2f0ae20cdeb95c7b6c03922
MD5 9673bf26ff58c7c02c8b1406a8191292
BLAKE2b-256 457519006de3bec1df31a9912adfdbbab77f4657266c41c902d076c79f28ec2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84bba208354e7eb516a9dd4bf6062e9caa54315ce9628e1627b3e356b7eac560
MD5 614d062333784059261fad27c9e775f8
BLAKE2b-256 df42560c9fdb3802b5dd3e3490a8869e2a0575d9d59424506960bb0556ffc67e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2460c6a52beabab2c56a05be2c025b85e40d642a63ff8b29ecbb706a2969e3a0
MD5 76a2f4050e7ac78e9ee0631727ff8c3b
BLAKE2b-256 cbf60d04c403c80544afa6164bbecbfb99f19d72f37cda9a2185bbc4af044875

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 a27cc95d1d136d73acf4a0bf08e245aac2b9c24e879721ce4a79b268e843c105
MD5 72a863e4ba367f843897de0e7855cf29
BLAKE2b-256 59bb76493d0a63568b4f5ea3eff20ef5c6f94896335baa91d0024489e2f2268f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a09f813b5b1d0564a2a81dc8de054c39d6dd322551a7171f8347be5a76bc1074
MD5 9cabb2cba9da67ef4eee4d8c6482c966
BLAKE2b-256 41813282cab0ba83b8d86dcd7719a84521a71768675a681232f116fcfc3ff174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08586bd8981bdf9dee9c68125f0caffddbf82f6b98dab28ba4c8996cffc61826
MD5 0a113843314d56654935ae0e81a9f638
BLAKE2b-256 2071d4688cbf55e64b09e84100b3829fb1245771e9530bb60744b34dd2da7eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ce736d057bb14acd2c84cd6340044cf5b8a30bdac0af41a122f6998ed4d9ce42
MD5 d55980ac924b650753ab34afc952c75e
BLAKE2b-256 160330003624c7fd57c8801eb8f0f293dd472b8b148f59ce28a019157cbb956e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 4f94c34ff8f0c8686fecf37dbbb1dd5d7098557448ee1acece2fe6146b87280b
MD5 85a6cf473f2c9204b2afdcb1ef75eb33
BLAKE2b-256 32233cc745f11b454afa9517d7e02244baca531a6e9632ddc054513b7748ebc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b89cd773bcc70eb8fe439650f797a159f35d7a6192d0d6907259013049fa34f1
MD5 a8dfc00f09c0039a936472c6f278ae94
BLAKE2b-256 c90f212998608246e9321f34101b9fbb566e4e093e396dbedd4e9cf61672f21b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 841051b149f7142e7ade18c58f2bc6147bd3b943220fcc3a2eada6ef102ec337
MD5 3bd2ff13e16452d397f448a06b24f3e3
BLAKE2b-256 548239a9d72f8cee46912f9cb08909a5a48f6703f608bbacbb14cdca902b47b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1745f3ace6e686e17fdbbdd43dabec8c981994ce962e0c4527ebe6246dc652af
MD5 f2c4ac9cd9486c5c18d60a2ed469c2ed
BLAKE2b-256 de6a1afd88b156db93f4d12109b68195dae21bf9a1769a346c89c07b2cfd00ba

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylace-0.4.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 b99dc3da9c8cc433724c380c340e55f7644c38d02184ec03d2d858193160ec04
MD5 9cc033f9d19b39efad76197db98336e7
BLAKE2b-256 aca54a227c69ff19d18155f38e90b6d883e3b0e7e5db4f3ff28192b883e98948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0ff3156a82a639e8ea7f86c4f563f75784702e4ab061b3b6c0d2ffd0ee2978d
MD5 61e9e5de66476ca7ce5024bf2b363e9b
BLAKE2b-256 991190c3fd4922b2d2a35a59a4f3e9a586d278835dbe384f7141625ec9811396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae6b91e182cdcdee3f4bbb214e397e4e4dc4cb9004002284c3bc0bef627211c1
MD5 fd48a66bf643ec0e2c80940fb0b2c121
BLAKE2b-256 2eef144807adf54de8c4ebbadb2f64861fc1091bc7d50bbba3a481e8f7da8516

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylace-0.4.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f901296015c96abff1da0ed57e17b596f2ac2386ca33c1c9daaf7a14d2d8d1cb
MD5 e47d6f8028294c4f13e67c04d49bc6a0
BLAKE2b-256 863d0b26246f0379702437873d8b976516badfdb0708be9775a412b17970aefc

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