[[.cia_post_chains | R Documentation |
Index a cia_post_chains object.
## S3 method for class 'cia_post_chains'
x[[i, ...]]
x |
A cia_post_chains object. |
i |
An index to get the cia_post_chain. |
... |
ellipsis for extra indexing parameters. |
chain A cia_post_chains object.
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)
dag_chains <- PartitiontoDAG(results, scorer)
pedge_sample <- SampleEdgeProbabilities(dag_chains)
head(pedge_sample[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.