Every hyperparameter search — whether you write it yourself or use a library — is really an algorithm exploring a loss surface defined over two (or more) hyperparameter axes, trying to find the point of lowest validation loss without ever seeing the whole surface at once. This simulation renders that surface directly: height and colour both encode loss, and coloured search agents show how different custom optimizer implementations explore it.
Real hyperparameter tuning libraries like Optuna and Hyperopt implement exactly this idea with a tree-structured Parzen estimator as the surrogate model — cheap to evaluate, used to decide which expensive real training run to try next.
A 3D loss landscape over two hyperparameters, explored live by coloured search agents running your choice of custom optimization algorithm — random search, grid search, multi-start gradient descent, or a surrogate-guided strategy.
Height and colour of the surface encode validation loss for every combination of two hyperparameters. Agents evaluate points, remember their best result, and move according to the selected algorithm's update rule each iteration.
Pick an algorithm, adjust the number of parallel trials, step size and landscape ruggedness, then watch the agents converge (or fail to) toward the true global minimum marked by the cyan ring.
Gradient-based search converges fastest on smooth landscapes but gets trapped in local minima on rugged ones — exactly why practitioners often start with a coarse random or surrogate-guided search before fine-tuning.