hbayes-0.5.2: Bayesian Networks

Safe HaskellNone
LanguageHaskell2010

Bayes.ImportExport

Contents

Description

Import / export Bayesian networks and junction tress

Synopsis

Networks

writeNetworkToFile Source

Arguments

:: FilePath

File path

-> SBN CPT

Bayesian network

-> IO () 

Write a bayesian network to file

readNetworkFromFile :: FilePath -> IO (SBN CPT) Source

Read bayesian network from file

Junction Tree

writeVariableMapAndJunctionTreeToFile :: FilePath -> Map String Vertex -> JunctionTree CPT -> IO () Source

Write a junction tree and the variable map to a file

readVariableMapAndJunctionTreeToFile :: FilePath -> IO (Map String Vertex, JunctionTree CPT) Source

Read variable map and junction tree from file