Skip to main content

(De)Serialization of JKL objects

Project description

jkl-serialization

Python library for (de)serializing jkl data as used by the Bayesian Network Structure Learner GOBNILP and proposed by Jaakkola et al. in Learning Bayesian Network Structure using LP Relaxations.

Example

JKL String

3
0 4
-2.772589 2 1 2
-2.865831 0
-2.963209 1 2
-2.963209 1 1
1 4
-2.772589 2 0 2
-2.865831 0
-2.963209 1 2
-2.963209 1 0
2 4
-2.772589 2 0 1
-2.865831 0
-2.963209 1 1
-2.963209 1 0

Serialized Python Object

{
  '0': [('-2.772589', ['1', '2']),
        ('-2.865831', []),
        ('-2.963209', ['2']),
        ('-2.963209', ['1'])],
 '1': [('-2.772589', ['0', '2']),
       ('-2.865831', []),
       ('-2.963209', ['2']),
       ('-2.963209', ['0'])],
 '2': [('-2.772589', ['0', '1']),
       ('-2.865831', []),
       ('-2.963209', ['1']),
       ('-2.963209', ['0'])]
  }

Build Status

Build Status codecov

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jkl_serialization-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

jkl_serialization-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file jkl_serialization-0.0.1.tar.gz.

File metadata

  • Download URL: jkl_serialization-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for jkl_serialization-0.0.1.tar.gz
Algorithm Hash digest
SHA256 259c18ba56f92fbecbbc0c48434c0096f01bdb4e193c56bc883f01db1a5ddec0
MD5 22f7cb2912ddd4c958267ef9dcf35b4d
BLAKE2b-256 be8587be702ac622cdf4965332a81a08c973772270723403ae07dbc08e614616

See more details on using hashes here.

File details

Details for the file jkl_serialization-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jkl_serialization-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for jkl_serialization-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7b0efb6d02cafe0d9597a6d9a4502f41e4b09774cbbceae94ee707fa458093
MD5 03ddb6760faef18698d98e8cb5f7c4a2
BLAKE2b-256 c81cacc0bdab272380cad45b6e3495aed0e5b16ec232ab0c2eb2d74b7058aa54

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page