(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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for jkl_serialization-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7b0efb6d02cafe0d9597a6d9a4502f41e4b09774cbbceae94ee707fa458093 |
|
MD5 | 03ddb6760faef18698d98e8cb5f7c4a2 |
|
BLAKE2b-256 | c81cacc0bdab272380cad45b6e3495aed0e5b16ec232ab0c2eb2d74b7058aa54 |