[.cia_chains | R Documentation |
Index a cia_chains object
## S3 method for class 'cia_chains'
x = list()[i, ...]
x |
A cia_chain object. |
i |
An index to get the cia_chain iterations. |
... |
ellipsis for extra indexing parameters. |
A cia_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)
results[5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.