Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

(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


Release history Release notifications

Download files

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

Files for jkl-serialization, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size jkl_serialization-0.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jkl_serialization-0.0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page