Index a cia_chain object
Usage
# S3 method for class 'cia_chain'
list()[i, ...]
Examples
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[[1]][5]
#> $state
#> $state[[1]]
#> partition node
#> 1 1 F
#> 2 2 B
#> 3 2 C
#> 4 3 A
#> 5 4 D
#> 6 4 E
#>
#>
#> $log_score
#> [1] -24117.23
#>
#> $proposal_info
#> $proposal_info[[1]]
#> $proposal_info[[1]]$proposal_used
#> [1] "swap_node"
#>
#>
#>
#> $mcmc_info
#> $mcmc_info[[1]]
#> $mcmc_info[[1]]$accept
#> [1] TRUE
#>
#> $mcmc_info[[1]]$white_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$black_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$jac
#> [1] 0
#>
#> $mcmc_info[[1]]$mhr
#> [1] 181.4837
#>
#>
#>
#> attr(,"class")
#> [1] "cia_chain"