ModelTestScale

Helpers & Utilities ยท AiDotNet.Testing

Size-bounded construction of model options, for diagnostic sweeps.

How It Works

Generated by TestScaleOptionsGenerator. Do not hand-edit, and do not add per-model branches anywhere else โ€“ extend the size vocabulary in the generator instead. The knobs are a TABLE applied reflectively rather than emitted as typed property assignments, because many options types are generic: a typed assignment would need typeof(Foo) with no T in scope, while the open definition keys a table fine.

Properties

Property Summary
int BoundedTypeCount { get; } Options types carrying at least one generated bound: 1436.
int ConstraintCount { get; } Total generated divisibility relationships: 259.
int KnobCount { get; } Total generated knob entries: 12534.
int SynthesizedTypeCount { get; } Constructor-only types built from synthesized arguments: 7.

Methods

Method Summary
bool SatisfiesDeclaredConstraints(object instance, string failure) Checks every divisibility relationship declared for an options instance.
int AlignDimensionToDivisor(int dimension, int divisor) Aligns a positive dimension upward to a positive architectural divisor.
int ScaleDeclaredInteger(int declared) Scales any declared integer down proportionally, using no names at all.
object CreateBoundedOptions(Type optionsType, IReadOnlyDictionary<string, int> overrides) Creates an options instance with its size knobs clamped down.