Configuration fields¶
This page lists every field of Config and Space with its type, default, meaning and effect on cost. It teaches nothing: Set the budgets and run on a laptop and Narrow the search space show how to use the fields.
A fit is one run of UMAP followed by HDBSCAN. Costs are counted in fits because wall time depends on the machine. Recorded runs with the default Config and the calibration test off used 314 fits on the scikit-learn digits dataset (1,797 rows). They used 334 on the APOGEE DR19 example table (9,242 rows) and 258 on Letter (20,000 rows). These numbers come from each run’s provenance and are recorded in the benchmark results. Wall time per fit is not measured here.
Config(...) raises ValueError in four cases: a numeric range is empty or reaches zero on a log axis, n_explore is not a power of two, n_null_max cannot reach alpha, or a budget is outside the range in the tables below. The message names the field. Config does not catch every unusable Space. An empty selection_method tuple, or min_dist bounds outside 0 to 1, pass construction and fail later in the search.
Space¶
Space holds the ranges of the six setting values that the search may propose. The five numeric fields are tuples of bounds, inclusive at both ends. selection_method is a tuple of allowed choices. Trial 0 is always the library default, with each numeric value moved to the nearest bound when a bound excludes it. Its selection method is "eom" when offered, otherwise the first choice you list.
Field |
Type and default |
What it controls |
Cost effect |
|---|---|---|---|
|
|
Bounds of n_neighbors, searched on a log scale. The upper bound may not exceed 100 and is capped at the rows per resample minus 1. |
None on the neighbour graph, which is built once per resample at width 100. Effect on UMAP time: not measured. |
|
|
Bounds of min_dist, searched on a linear scale. |
Not measured. |
|
|
Bounds of n_components, searched on a linear integer scale. |
Not measured. |
|
|
Bounds of min_cluster_size, searched on a log scale. |
Not measured. |
|
|
Bounds of |
Not measured. |
|
|
The allowed values of the selection method. |
None. |
Config: search¶
These fields set how the search spends its trials. A complete trial costs n_resamples fits, or twice that when a structureless copy is scored beside it. A pruned trial stops after 2 fits.
Field |
Type and default |
What it controls |
Cost effect |
|---|---|---|---|
|
|
The ranges above. |
See |
|
|
How each column is scaling inside every resample and refit. |
None. |
|
|
Maximum number of trials. Must exceed |
About one complete trial per unit, at most |
|
|
Number of Sobol design trials after trial 0. Must be a power of two of at least 2. Design trials are never pruned. |
Same per trial as above. The calibration test replays these |
|
|
Number of random subsets every trial is scored on. At least 2. |
Fits per trial grow in step with it, and the held-out pairs grow as |
|
|
Fraction of rows in each subset, strictly between 0 and 1. |
Fewer rows per fit: not measured. |
|
|
The search stops when the best score improved by less than |
Raising it allows more trials. |
|
|
The smallest improvement that counts. Non-negative. |
Raising it stops the search sooner. |
|
|
Whether convergence trials may be stopped after 2 fits by pruning. |
Saves the third fit of each pruned trial. |
|
|
Number of pruned trials finished at the end when their partial score beats the best complete trial. Non-negative. |
At most this many extra trials. |
|
|
Number of top complete trials that get a fresh re-score. The defaults are added when they are not among them. At least 1. |
At most |
|
|
Number of fresh structureless copies scored at the re-score. With 0, no copy is scored at all and the score is not a gap. Non-negative. |
Each copy adds |
|
|
The family of structureless copy that defines the gap. One of |
Scoring the copy doubles the fits of every complete trial. |
Config: refits, consensus and calibration¶
These fields set the refit count, the consensus check and the optional calibration test.
Field |
Type and default |
What it controls |
Cost effect |
|---|---|---|---|
|
|
Number of refits (also called worlds). Between 2 and 32,767. |
One fit per refit. |
|
|
Fraction of rows each refit draws without replacement, strictly between 0 and 1. |
Not measured. |
|
|
Families of structureless copy for the calibration test inside |
See |
|
|
What each copy replays: the |
|
|
|
Largest number of copies per family. Must be at least |
Up to 1,938 fits per family at 19 copies, about six times the rest of a run. Each extra family adds as many. |
|
|
The family stops once this many copies reach the table’s value. At least 1. |
Stops the test sooner when the table is not distinguishable. |
|
|
The alpha level for |
Smaller |
|
|
Memory the co-association matrices may use. |
The dense check needs |
|
|
Rows in the recorded subset used above the budget. At least 2, and |
Memory of the check: 268,435,456 bytes at the default. |
|
|
Whether |
|
recover arguments¶
Argument |
Type and default |
What it controls |
|---|---|---|
|
array-like, rows by columns |
The table. At least 50 finite rows and 2 columns. |
|
array-like or |
Per-value standard deviations, same shape as |
|
callable or |
A measurement model |
|
|
Budgets and rules. |
|
|
The seed from which every stage derives its own seed. |
|
|
The engine. |
|
|
CPU worker processes. Forced to 1 on cuML (flag |