-
Notifications
You must be signed in to change notification settings - Fork 26
Exhaustive Mode
Exhaustive mode is the mode that allows HyperMapper to be used when an exhaustive search file is available. In this mode, HyperMapper will read the objective values for sampled configurations from a file, instead of calling the black-box function. This is usually useful for applications with a small search space where the objective is to asses how HyperMapper performs on that dataset.
The exhaustive mode requires an exhaustive search file and a json configuration file. The exhaustive search file must contain all of the possible configurations from the search space and the values of the optimization metrics for each configuration. To enable exhaustive mode, also add the following lines to the json configuration file:
“hypermapper_mode”: {
“mode”: “exhaustive”,
"exhaustive_search_file": "path/to/exhaustive_search_file.csv"
}
For an example on the Exhaustive mode, check the BlackScholes configuration file and exhaustive search file. This is a real world example from the Spatial Use Case.
To run this example, we use:
cd $HYPERMAPPER_HOME
python scripts/hypermapper.py tests/data/BlackScholes_scenario.json
HyperMapper will then optimize the objectives in the same way as other methods, except by reading the objective values from the exhaustive file instead of calling the black-box function. Similar to other modes, HyperMapper will produce a csv file containing all of the points explored.