Expand description
Brute force optimization for LZ match and entropy multiplier parameters.
This module provides functionality to find optimal values for the
lz_match_multiplier and entropy_multiplier parameters used in the
size_estimate function.
It exposes two main optimization approaches:
-
Split comparisons: Optimizes parameters for two groups being compared directly using the
find_optimal_split_result_coefficientsfunction. Results are returned asSplitComparisonOptimizationResult. -
Custom comparisons: Optimizes parameters for custom groups with a variable number of comparisons against a baseline group using the
find_optimal_custom_result_coefficientsfunction. Results are returned asCustomComparisonOptimizationResult.
The main entry point for using this module is the optimize_and_apply_coefficients function,
which performs the optimization and applies the resulting coefficients to an existing
MergedAnalysisResults object in place.
Modules§
Structs§
- Brute
Force Config - Configuration for the brute force optimization process.
- Optimization
Result - Result of a brute force optimization.
Functions§
- apply_
optimized_ coefficients - Applies the optimized coefficients to the merged results and original files.
- optimize_
and_ apply_ coefficients - Optimizes and applies coefficients to a slice of
AnalysisResultsobjects. - print_
all_ optimization_ results - Prints formatted optimization results for both split and custom comparisons.