tomopt.benchmarks.ladle_furnace package¶
Submodules¶
tomopt.benchmarks.ladle_furnace.data module¶
- class tomopt.benchmarks.ladle_furnace.data.LadleFurnacePassiveGenerator(volume, x0_furnace=0.01782, fill_material='hot liquid steel', slag_material='slag')[source]¶
Bases:
AbsPassiveGeneratorResearch tested only: no unit tests
tomopt.benchmarks.ladle_furnace.inference module¶
- class tomopt.benchmarks.ladle_furnace.inference.EdgeDetLadleFurnaceFillLevelInferrer(partial_x0_inferrer, volume, pipeline=['remove_ladle', 'avg_3d', 'avg_layers', 'avg_1d', 'ridge_1d_0', 'negative', 'max_div_min'], add_batch_dim=True, output_probs=True)[source]¶
Bases:
AbsIntClassifierFromX0Research tested only: no unit tests
- class tomopt.benchmarks.ladle_furnace.inference.LinearCorrectionCallback(partial_opt, init_weight=1.0, init_bias=0.0)[source]¶
Bases:
CallbackResearch tested only: no unit tests
- on_backwards_end()[source]¶
Runs when the loss for a batch of passive volumes has been backpropagated, but parameters have not yet been updated.
- Return type:
None
- class tomopt.benchmarks.ladle_furnace.inference.PocaZLadleFurnaceFillLevelInferrer(volume, smooth=0.1)[source]¶
Bases:
AbsVolumeInferrerResearch tested only: no unit tests
Computes fill heigh based on weighted average of z of POCAs
- compute_efficiency(scatters)[source]¶
Computes the per-muon efficiency, given the individual muon hit efficiencies, as the probability of at least two hits above and below the passive volume.
- Parameters:
scatters (
ScatterBatch) – scatter batch containing muons whose efficiency should be computed- Return type:
Tensor- Returns:
(muons) tensor of muon efficiencies
- get_prediction()[source]¶
Computes the predicted fill level via a weighted average of POCA locations.
- Returns:
fill-height prediction [m]
- Return type:
pred
- property muon_efficiency: Tensor¶
Returns: (muons,1) tensor of the efficiencies of the muons
- property muon_poca_xyz: Tensor¶
Returns: (muons,xyz) tensor of PoCA locations
- property muon_poca_xyz_unc: Tensor¶
Returns: (muons,xyz) tensor of PoCA location uncertainties
- property n_mu: int¶
Returns: Total number muons included in the inference
- property pred_height: Tensor¶
Returns: (h) tensor of fill-height prediction
- property smooth: Tensor¶
tomopt.benchmarks.ladle_furnace.loss module¶
- class tomopt.benchmarks.ladle_furnace.loss.LadleFurnaceIntClassLoss(*, pred_int_start=0, use_mse, target_budget, budget_smoothing=10, cost_coef=None, steep_budget=True, debug=False)[source]¶
Bases:
VolumeIntClassLossResearch tested only: no unit tests
- class tomopt.benchmarks.ladle_furnace.loss.SpreadRangeLoss[source]¶
Bases:
CallbackResearch tested only: no unit tests
- on_volume_batch_begin()[source]¶
Runs when a new batch of passive volume layouts is begins.
- Return type:
None
tomopt.benchmarks.ladle_furnace.plotting module¶
- tomopt.benchmarks.ladle_furnace.plotting.compare_init_optimised_2(df_start, df_opt_2, NAME)[source]¶
- Return type:
None
- tomopt.benchmarks.ladle_furnace.plotting.compare_init_to_optimised(df_start, df_opt, NAME)[source]¶
- Return type:
None
tomopt.benchmarks.ladle_furnace.volume module¶
- tomopt.benchmarks.ladle_furnace.volume.get_baseline_detector_1(*, res=10000.0, eff=0.9, span=0.8, device=device(type='cpu'))[source]¶
- Return type:
ModuleList