hbayes-0.5: Bayesian Networks

Safe HaskellSafe-Infered

Bayes.ImportExport

Contents

Description

Import / export Bayesian networks and junction tress

Synopsis

Networks

writeNetworkToFileSource

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