FlattenChains | R Documentation |
Flatten a cia_chains object into a single cia_chain object. This is helpful for when you want to calculate a feature across using all samples across the cia_chains.
FlattenChains(chains)
chains |
A cia_chains object. |
A cia_chain object of flattened samples.
data <- bnlearn::learning.test
dag <- UniformlySampleDAG(colnames(data))
partitioned_nodes <- DAGtoPartition(dag)
scorer <- CreateScorer(
scorer = BNLearnScorer,
data = data
)
results <- SampleChains(10, partitioned_nodes, PartitionMCMC(), scorer)
FlattenChains(results)[1:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.