Index a cia_chains object
Usage
# S3 method for class 'cia_chains'
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[5]
#> [[1]]
#> $state
#> $state[[1]]
#> partition node
#> 1 1 D
#> 2 2 A
#> 3 2 F
#> 4 3 E
#> 5 4 B
#> 6 4 C
#>
#>
#> $log_score
#> [1] -24283.28
#>
#> $proposal_info
#> $proposal_info[[1]]
#> $proposal_info[[1]]$proposal_used
#> [1] "split_join"
#>
#>
#>
#> $mcmc_info
#> $mcmc_info[[1]]
#> $mcmc_info[[1]]$accept
#> [1] FALSE
#>
#> $mcmc_info[[1]]$white_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$black_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$jac
#> [1] -0.3566749
#>
#> $mcmc_info[[1]]$mhr
#> [1] -238.6145
#>
#>
#>
#> attr(,"class")
#> [1] "cia_chain"
#>
#> [[2]]
#> $state
#> $state[[1]]
#> partition node
#> 1 1 F
#> 2 2 E
#> 3 3 D
#> 4 4 C
#> 5 5 B
#> 6 6 A
#>
#>
#> $log_score
#> [1] -24483.92
#>
#> $proposal_info
#> $proposal_info[[1]]
#> $proposal_info[[1]]$proposal_used
#> [1] "split_join"
#>
#>
#>
#> $mcmc_info
#> $mcmc_info[[1]]
#> $mcmc_info[[1]]$accept
#> [1] FALSE
#>
#> $mcmc_info[[1]]$white_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$black_obeyed
#> [1] TRUE
#>
#> $mcmc_info[[1]]$jac
#> [1] -0.1823216
#>
#> $mcmc_info[[1]]$mhr
#> [1] -444.3151
#>
#>
#>
#> attr(,"class")
#> [1] "cia_chain"
#>
#> attr(,"class")
#> [1] "cia_chains"