jansel / opentuner

An extensible framework for program autotuning
http://opentuner.org/
MIT License
382 stars 112 forks source link

Set Max Function Evaluation? #163

Closed TianningGao closed 3 months ago

TianningGao commented 5 months ago

Assume that I'm optimizing the Rosenbrock function, is there a way to let OpenTuner stop after a pre-defined number of function evaluations?

Another questions is, if I have an initial dataset of the Rosenbrock function, how to pass it into OpenTuner?

jansel commented 5 months ago

From --help

Assume that I'm optimizing the Rosenbrock function, is there a way to let OpenTuner stop after a pre-defined number of function evaluations?

  --test-limit TEST_LIMIT
                        stop tuning after given tests count

Another questions is, if I have an initial dataset of the Rosenbrock function, how to pass it into OpenTuner?

  --seed-configuration FILENAME
                        Start search at a given configuration. Can be specified multiple times. Configurations are
                        loaded with ConfigurationManipulator.load_from_file() and file format is detected from
                        extension.
TianningGao commented 5 months ago

Thank you for your responding! Also, is there any example of the seed configuration file? I need to know the data format in that file.

jansel commented 5 months ago

It is the same json file format that is output for the final config found.

TianningGao commented 5 months ago

Got it. Thank you so much!