Config
opulse.config ¶
Typed settings for every generator, loaded from one YAML file.
The new layout groups keys by the component that reads them::
semantics: {mode, bound}
symbols: {left_operand, right_operand, operand_names, argument_separator,
left_paren, right_paren, equals, nan, inf, neg_inf}
numerals: {max_base, digits}
operators: {naming, shape_sets, shape_chars, index_chars, definition_layout, piecewise_min_length,
symbol_min_len, symbol_max_len, symbol_sets, symbol_chars, symbol_blocks, symbol_ascii,
exclude_confusable, arity_weights,
max_if_branches, condition_min, condition_max}
recursion: {style, modulus_min, modulus_max, direct_bound, constant_min, constant_max}
expressions: {variables, value_min, value_max, max_depth, type_weights, atom_weights,
numeral_base, random_numeral_base, result_base, random_result_base, cot_base}
interest: {dedup, selection, pool, temperature, weights, probe_ints, max_probe_points,
regularity_range, max_period, solver_timeout_ms}
Legacy flat configs (config/generate_operator.yaml in the old tree) are
also accepted; see :func:_from_legacy.
SemanticsSettings
dataclass
¶
Numeric mode (docs/reference/semantics.md section 2).
Symbols
dataclass
¶
InterestSettings
dataclass
¶
Behavioural deduplication and interestingness scores (opulse.generation.interest).
Everything is off by default; a default run computes none of it.
normalize_arity_weights ¶
normalize_arity_weights(weights: dict) -> dict[int, float]
Integer arities (YAML may give "3") with non-negative weights, at least one positive.
stable_dict ¶
stable_dict(settings: Settings) -> dict
asdict(settings) without later-added keys that still have their defaults.