Class SearchSpaceFunctions
- Namespace
- OptunaSharp.SearchSpace
- Assembly
- OptunaSharp.dll
Port of optuna/search_space/intersection.py.
public static class SearchSpaceFunctions
- Inheritance
-
SearchSpaceFunctions
- Inherited Members
Methods
IntersectionSearchSpaceOf(IReadOnlyList<FrozenTrial>, bool)
Return the intersection search space of the given trials.
Intersection search space contains the intersection of parameter distributions that have been suggested in the completed trials of the study so far. If there are multiple parameters that have the same name but different distributions, neither is included in the resulting search space (i.e., the parameters with dynamic value ranges are excluded).
public static OrderedDict<string, BaseDistribution> IntersectionSearchSpaceOf(IReadOnlyList<FrozenTrial> trials, bool includePruned = false)
Parameters
trialsIReadOnlyList<FrozenTrial>Trial snapshots to inspect; their order is preserved unless the operation explicitly ranks them.
includePrunedboolWhether pruned trials contribute their recorded parameter distributions.
Returns
- OrderedDict<string, BaseDistribution>
A dictionary containing the parameter names and parameter's distributions sorted by parameter names.