Deborah.Sarah.BlockSizeSuggester

Deborah.Sarah.BlockSizeSuggester.suggest_opt_block_sizesMethod
suggest_opt_block_sizes(
    N_cnf::Integer, 
    N_lb::Integer, 
    N_bc::Integer, 
    N_ul::Integer,
    base_block_size::Integer; 
    min_block::Int=1
) -> Dict{Symbol,Int}

Return optimal block sizes for each subset as a Dict{Symbol,Int} based on a given optimal block size for the full dataset.

Arguments

  • N_cnf::Integer: Total number of configurations (full dataset size).
  • N_lb::Integer: Number of configurations in the labeled set.
  • N_bc::Integer: Number of configurations in the bias-correction set.
  • N_ul::Integer: Number of configurations in the unlabeled set.
  • base_block_size::Integer: Optimal block size for the full dataset (:all).

Keyword Arguments

  • min_block::Int=1: Lower bound for any suggested block size.

Returns

A Dict{Symbol,Int} with keys:

  • :allbase_block_size
  • :lbbase * (N_lb / N_cnf)
  • :bcbase * (N_bc / N_cnf)
  • :ulbase * (N_ul / N_cnf)

All scaled values are rounded to the nearest integer and clamped to min_block.

source
Deborah.Sarah.BlockSizeSuggester.suggest_opt_block_sizesMethod
suggest_opt_block_sizes(
    partition::DatasetPartitioner.DatasetPartitionInfo, 
    base_block_size; 
    min_block::Int=1
) -> Dict{Symbol,Int}

Compatibility wrapper that extracts N_cnf, N_lb, N_bc, N_ul from partition and forwards to the integer-argument method.

source