Skip to content

Compute Pareto

Luigi Nardi edited this page Dec 20, 2019 · 2 revisions

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 1:

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

Another useful usage of this script is when we want to compute a Pareto from some other approach and we have the data of the exploration in a csv data file. In that case we still need to provide the json file but we can overwrite from the command line the input csv file and the output csv file.

Example 2:

python3 scripts/compute_pareto.py example_scenarios/spatial/app_scenario.json /path/to/input_data_file.csv /path/to/output_pareto_file.csv 

In this context /path/to/input_data_file.csv is the file that contains all the samples from where we want to compute the Pareto.

Clone this wiki locally