Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Modelkit.Grid_search
Typed exhaustive search over finite immutable configuration grids.
Axes retain declaration order and their values retain caller order. The Cartesian product varies the last axis fastest. Each candidate is evaluated on identical split membership, while fitted fold RNGs derive from the logical candidate and fold identities. Ranking uses the named refit scorer's mean test score in descending order; equal scores receive equal competition ranks and the lowest candidate index wins a tie.
Record keeps failed candidates and selects from candidates whose primary test score aggregates successfully. Abort returns the first failure in candidate order. The winning immutable specification is fitted once on the complete dataset. For c candidates, f folds, and s scorers, search performs at most c * f + 1 fits and retains O(c * (f + s)) report data. An empty axis array evaluates the base configuration once. execution controls each candidate's fold evaluation and defaults to sequential execution; candidates themselves are evaluated in stable sequential order.