Skip to content

Run HyperMapper

Luigi Nardi edited this page Dec 20, 2019 · 1 revision

This page is under construction, refer to the quick start guide for help on how to run HyperMapper

Run HyperMapper to perform design-space exploration

Setup a json configuration file

Before running HyperMapper first setup a json configuration file. Follow this example: example_scenarios/spatial/BlackScholes_senario.json

Then run:

cd hypermapper; 
python3 scripts/pareto_based_active_learning.py example_scenarios/spatial/BlackScholes_senario.json

Compute Pareto

This script computes a Pareto from the csv data files specified in the json output_data_file field and returns the Pareto in the file specified in the json output_pareto_file field.

Example:

python3 scripts/compute_pareto.py example_scenarios/spatial/BlackScholes_scenario.json

Plot Pareto

Need the following files:

  1. Approximated Pareto: this is the result of your design-space exploration under the form of a csv file.
  2. Output result of the design-space exploration this is the file with all the samples explored during the search, under the form of a csv file. In practice two files are generated:
  • A first file where the view is restricted to [0, 1] on the axis where the percentage option was enabled in the json.
  • A second file with the prefix "all_" where all the samples are plot without restriction.
  1. The search space file: this is the file that contains the definition of the space to be searched. Example: example_scenarios/spatial/BlackScholes_search_space.pcs.
  2. [Optional] Pdf output file: this is the image created by this script. If not provided the output.pdf will be generated.
  3. [Optional] The real Pareto: this is the actual Pareto (not always available) under the form of a csv file.

Example:

python3 scripts/plot_dse.py example_scenarios/spatial/BlackScholes_senario.json

One command do it all

You can run one script that does the 3 steps in one: active learning + compute Pareto + plot.

Setup a json configuration file

Follow this example: example_scenarios/spatial/BlackScholes_senario.json

Then run:

cd hypermapper; 
python3 scripts/hypermapper.py example_scenarios/spatial/BlackScholes_senario.json

Other plots

plot HVI

Clone this wiki locally