Running BOA Optimization Directly in Python#

This notebook demonstrates how to:

Write a basic Wrapper in Python and launch a optimization from Python. If you wanted to launch it from command line, you would do a similar thing of defining the Wrapper, and then put in your configuration file the information about where the wrapper is, and use BOA’s CLI tools. See Running an Experiment from Command Line (Python Wrapper) for more information.

1import pathlib
2import shutil
3
4from IPython.display import Code
5from wrapper import Wrapper
6
7import boa
[WARNING 07-13 14:30:51] ax.service.utils.with_db_settings_base: Ax currently requires a sqlalchemy version below 2.0. This will be addressed in a future release. Disabling SQL storage in Ax for now, if you would like to use SQL storage please install Ax with mysql extras via `pip install ax-platform[mysql]`.
Hide code cell content
1# Remove old runs to have a clean slate for this example
2old_runs = pathlib.Path().resolve().glob("boa_runs*")
3for path in old_runs:
4    shutil.rmtree(path)

Loading the Config File#

1config_path = pathlib.Path().resolve() / "single_config.yaml"

Here we can see what the configuration file looks like

1Code(config_path)
# Single objective optimization config
optimization_options:
    objective_options:
        objectives:
            - name: Cosine8
    trials: 50
    append_timestamp: False
parameters:
    x0:
        type: range
        bounds: [0.0, 1.0]
    x1:
        type: range
        bounds: [0.0, 1.0]
    x2:
        type: range
        bounds: [0.0, 1.0]
    x3:
        type: range
        bounds: [0.0, 1.0]
    x4:
        type: range
        bounds: [0.0, 1.0]
    x5:
        type: range
        bounds: [0.0, 1.0]
    x6:
        type: range
        bounds: [0.0, 1.0]
    x7:
        type: range
        bounds: [0.0, 1.0]
# These are all defaults, so we don't need to specify them in this case
#script_options:
#    wrapper_path: ./wrapper.py
#    wrapper_name: Wrapper
#    working_dir: .
#    experiment_dir: ... # this is where boa will write logs to by default
                         # if not specified it will be working_dir/experiment_name
#    append_timestamp: True
# This last option appends a timestamp to our output experiment directory.
# This is also the default (True)

we need the config normalized, which modifies the parameter section into a less user friendly form, but what the downstream libraries need

1config = boa.load_jsonlike(config_path)

Define Our Wrapper#

We define our wrapper in wrapper.py and use a synthetic function that stands in for any black box model call

1Code(Wrapper.path())
import numpy as np
from ax.utils.measurement.synthetic_functions import from_botorch
from botorch.test_functions.synthetic import Cosine8

import boa

cosine8 = from_botorch(Cosine8())


def black_box_model(X) -> float:
    result = -cosine8(X)
    return result


class Wrapper(boa.BaseWrapper):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.data = {}

    def run_model(self, trial) -> None:
        X = np.array([parameter for parameter in trial.arm.parameters.values()])
        # This is a silly toy function, in reality,
        # you could instead import your model main() function and use that, and then collect the results.
        # You could also call an external script to start a model run from Bash or elsewhere.
        self.data[trial.index] = black_box_model(X)

    def set_trial_status(self, trial) -> None:
        data_exists = self.data.get(trial.index)
        if data_exists:
            trial.mark_completed()

    def fetch_trial_data(self, trial, *args, **kwargs):
        return self.data[trial.index]

Initialize our Setup#

1controller = boa.Controller(config_path=config_path, wrapper=Wrapper)
2
3controller.initialize_scheduler()
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x0. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x1. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x2. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x3. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x4. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x5. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x6. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Inferred value type of ParameterType.FLOAT for parameter x7. If that is not the expected value type, you can explicity specify 'value_type' ('int', 'float', 'bool' or 'str') in parameter dict.
[INFO 07-13 14:30:53] ax.service.utils.instantiation: Created search space: SearchSpace(parameters=[RangeParameter(name='x0', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x1', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x2', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x3', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x4', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x5', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x6', parameter_type=FLOAT, range=[0.0, 1.0]), RangeParameter(name='x7', parameter_type=FLOAT, range=[0.0, 1.0])], parameter_constraints=[]).
[INFO 07-13 14:30:53] ax.modelbridge.dispatch_utils: Using Models.GPEI since there are more ordered parameters than there are categories for the unordered categorical parameters.
[INFO 07-13 14:30:53] ax.modelbridge.dispatch_utils: Calculating the number of remaining initialization trials based on num_initialization_trials=None max_initialization_trials=None num_tunable_parameters=8 num_trials=None use_batch_trials=False
[INFO 07-13 14:30:53] ax.modelbridge.dispatch_utils: calculated num_initialization_trials=16
[INFO 07-13 14:30:53] ax.modelbridge.dispatch_utils: num_completed_initialization_trials=0 num_remaining_initialization_trials=16
[INFO 07-13 14:30:53] ax.modelbridge.dispatch_utils: Using Bayesian Optimization generation strategy: GenerationStrategy(name='Sobol+GPEI', steps=[Sobol for 16 trials, GPEI for subsequent trials]). Iterations after 16 will take longer to generate due to model-fitting.
[INFO 07-13 14:30:53] Scheduler: `Scheduler` requires experiment to have immutable search space and optimization config. Setting property immutable_search_space_and_opt_config to `True` on experiment.
(Scheduler(experiment=Experiment(boa_runs), generation_strategy=GenerationStrategy(name='Sobol+GPEI', steps=[Sobol for 16 trials, GPEI for subsequent trials]), options=SchedulerOptions(max_pending_trials=10, trial_type=<TrialType.TRIAL: 0>, batch_size=None, total_trials=None, tolerated_trial_failure_rate=0.5, min_failed_trials_for_failure_rate_check=5, log_filepath=None, logging_level=20, ttl_seconds_for_trials=None, init_seconds_between_polls=1, min_seconds_before_poll=1.0, seconds_between_polls_backoff_factor=1.5, timeout_hours=None, run_trials_in_batches=False, debug_log_run_metadata=False, early_stopping_strategy=None, global_stopping_strategy=None, suppress_storage_errors_after_retries=False)),
 <wrapper.Wrapper at 0x16de09780>)

Run our Experiment#

The Controller will save our scheduler to JSON after it completes the run so we can reload it at a later time for analysis or to resume our experiment

1scheduler = controller.run()
[INFO 2023-07-13 14:30:53,587 MainProcess] boa: 

##############################################


BOA Experiment Run
Output Experiment Dir: /Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053
Start Time: 20230713T143053
Version: 0.8.7.dev4+gae30cf2.d20230713

##############################################

[INFO 07-13 14:30:53] Scheduler: Running trials [0]...
[INFO 07-13 14:30:54] Scheduler: Running trials [1]...
[INFO 07-13 14:30:55] Scheduler: Running trials [2]...
[INFO 07-13 14:30:56] Scheduler: Running trials [3]...
[INFO 07-13 14:30:57] Scheduler: Running trials [4]...
[INFO 07-13 14:30:58] Scheduler: Running trials [5]...
[INFO 07-13 14:30:59] Scheduler: Running trials [6]...
[INFO 07-13 14:31:00] Scheduler: Running trials [7]...
[INFO 07-13 14:31:01] Scheduler: Running trials [8]...
[INFO 07-13 14:31:01] Scheduler: Running trials [9]...
[INFO 07-13 14:31:02] Scheduler: Retrieved COMPLETED trials: 0 - 9.
[INFO 07-13 14:31:02] Scheduler: Fetching data for trials: 0 - 9.
[ERROR 2023-07-13 14:31:03,260 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:03,376 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:03,518 MainProcess] boa: Trials so far: 10
Running trials: 
Will Produce next trials from generation step: Sobol
Best trial so far: {2: {'Cosine8': 1.8380990235708126}}
[INFO 07-13 14:31:03] Scheduler: Running trials [10]...
[INFO 07-13 14:31:04] Scheduler: Running trials [11]...
[INFO 07-13 14:31:05] Scheduler: Running trials [12]...
[INFO 07-13 14:31:05] Scheduler: Running trials [13]...
[INFO 07-13 14:31:06] Scheduler: Running trials [14]...
[INFO 07-13 14:31:06] Scheduler: Running trials [15]...
[INFO 07-13 14:31:10] Scheduler: Running trials [16]...
[INFO 07-13 14:31:11] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:12] Scheduler: Running trials [17]...
[INFO 07-13 14:31:13] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:15] Scheduler: Running trials [18]...
[INFO 07-13 14:31:16] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:16] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:16] Scheduler: Retrieved COMPLETED trials: 10 - 18.
[INFO 07-13 14:31:16] Scheduler: Fetching data for trials: 10 - 18.
[ERROR 2023-07-13 14:31:16,483 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:16,556 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:16,616 MainProcess] boa: Trials so far: 19
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {16: {'Cosine8': 1.5766326240667596}}
[INFO 07-13 14:31:17] Scheduler: Running trials [19]...
[INFO 07-13 14:31:18] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:20] Scheduler: Running trials [20]...
[INFO 07-13 14:31:21] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:22] Scheduler: Running trials [21]...
[INFO 07-13 14:31:23] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:23] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:23] Scheduler: Retrieved COMPLETED trials: 19 - 21.
[INFO 07-13 14:31:23] Scheduler: Fetching data for trials: 19 - 21.
[ERROR 2023-07-13 14:31:23,589 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:23,611 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:23,638 MainProcess] boa: Trials so far: 22
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {19: {'Cosine8': 1.313831360294258}}
[INFO 07-13 14:31:24] Scheduler: Running trials [22]...
[INFO 07-13 14:31:25] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:27] Scheduler: Running trials [23]...
[INFO 07-13 14:31:28] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:31] Scheduler: Running trials [24]...
[INFO 07-13 14:31:32] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:32] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:32] Scheduler: Retrieved COMPLETED trials: 22 - 24.
[INFO 07-13 14:31:32] Scheduler: Fetching data for trials: 22 - 24.
[ERROR 2023-07-13 14:31:32,294 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:32,317 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:32,344 MainProcess] boa: Trials so far: 25
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {22: {'Cosine8': 1.0901740170548075}}
[INFO 07-13 14:31:33] Scheduler: Running trials [25]...
[INFO 07-13 14:31:34] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:35] Scheduler: Running trials [26]...
[INFO 07-13 14:31:36] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:37] Scheduler: Running trials [27]...
[INFO 07-13 14:31:38] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:38] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:38] Scheduler: Retrieved COMPLETED trials: 25 - 27.
[INFO 07-13 14:31:38] Scheduler: Fetching data for trials: 25 - 27.
[ERROR 2023-07-13 14:31:38,952 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:39,000 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:39,060 MainProcess] boa: Trials so far: 28
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {26: {'Cosine8': 0.9560600283858646}}
[INFO 07-13 14:31:40] Scheduler: Running trials [28]...
[INFO 07-13 14:31:41] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:42] Scheduler: Running trials [29]...
[INFO 07-13 14:31:43] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:45] Scheduler: Running trials [30]...
[INFO 07-13 14:31:46] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:46] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:46] Scheduler: Retrieved COMPLETED trials: 28 - 30.
[INFO 07-13 14:31:46] Scheduler: Fetching data for trials: 28 - 30.
[ERROR 2023-07-13 14:31:46,257 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:46,291 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:46,323 MainProcess] boa: Trials so far: 31
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {30: {'Cosine8': 0.6371869524764805}}
[INFO 07-13 14:31:47] Scheduler: Running trials [31]...
[INFO 07-13 14:31:48] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:49] Scheduler: Running trials [32]...
[INFO 07-13 14:31:50] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:52] Scheduler: Running trials [33]...
[INFO 07-13 14:31:53] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:53] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:53] Scheduler: Retrieved COMPLETED trials: 31 - 33.
[INFO 07-13 14:31:53] Scheduler: Fetching data for trials: 31 - 33.
[ERROR 2023-07-13 14:31:53,606 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:53,637 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:53,669 MainProcess] boa: Trials so far: 34
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {32: {'Cosine8': 0.3850873771835154}}
[INFO 07-13 14:31:54] Scheduler: Running trials [34]...
[INFO 07-13 14:31:55] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:56] Scheduler: Running trials [35]...
[INFO 07-13 14:31:57] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:57] Scheduler: Running trials [36]...
[INFO 07-13 14:31:58] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:31:58] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:31:58] Scheduler: Retrieved COMPLETED trials: 34 - 36.
[INFO 07-13 14:31:58] Scheduler: Fetching data for trials: 34 - 36.
[ERROR 2023-07-13 14:31:58,966 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:31:58,999 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:31:59,032 MainProcess] boa: Trials so far: 37
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {32: {'Cosine8': 0.3850873771835154}}
[INFO 07-13 14:32:00] Scheduler: Running trials [37]...
[INFO 07-13 14:32:01] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:01] Scheduler: Running trials [38]...
[INFO 07-13 14:32:02] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:04] Scheduler: Running trials [39]...
[INFO 07-13 14:32:05] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:05] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:32:05] Scheduler: Retrieved COMPLETED trials: 37 - 39.
[INFO 07-13 14:32:05] Scheduler: Fetching data for trials: 37 - 39.
[ERROR 2023-07-13 14:32:05,244 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:05,285 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:05,327 MainProcess] boa: Trials so far: 40
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {37: {'Cosine8': 0.1477110535728049}}
[INFO 07-13 14:32:06] Scheduler: Running trials [40]...
[INFO 07-13 14:32:07] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:07] Scheduler: Running trials [41]...
[INFO 07-13 14:32:08] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:09] Scheduler: Running trials [42]...
[INFO 07-13 14:32:10] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:10] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:32:10] Scheduler: Retrieved COMPLETED trials: 40 - 42.
[INFO 07-13 14:32:10] Scheduler: Fetching data for trials: 40 - 42.
[ERROR 2023-07-13 14:32:10,603 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:10,648 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:10,692 MainProcess] boa: Trials so far: 43
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {40: {'Cosine8': -0.026683676360072683}}
[INFO 07-13 14:32:11] Scheduler: Running trials [43]...
[INFO 07-13 14:32:12] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:12] Scheduler: Running trials [44]...
[INFO 07-13 14:32:14] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:14] Scheduler: Running trials [45]...
[INFO 07-13 14:32:15] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:15] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:32:15] Scheduler: Retrieved COMPLETED trials: 43 - 45.
[INFO 07-13 14:32:15] Scheduler: Fetching data for trials: 43 - 45.
[ERROR 2023-07-13 14:32:15,217 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:15,257 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:15,292 MainProcess] boa: Trials so far: 46
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {40: {'Cosine8': -0.026683676360072683}}
[INFO 07-13 14:32:16] Scheduler: Running trials [46]...
[INFO 07-13 14:32:17] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:17] Scheduler: Running trials [47]...
[INFO 07-13 14:32:18] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:19] Scheduler: Running trials [48]...
[INFO 07-13 14:32:20] ax.modelbridge.torch: The observations are identical to the last set of observations used to fit the model. Skipping model fitting.
[INFO 07-13 14:32:20] Scheduler: Generated all trials that can be generated currently. Max parallelism currently reached.
[INFO 07-13 14:32:20] Scheduler: Retrieved COMPLETED trials: 46 - 48.
[INFO 07-13 14:32:20] Scheduler: Fetching data for trials: 46 - 48.
[ERROR 2023-07-13 14:32:20,768 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:20,812 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:20,853 MainProcess] boa: Trials so far: 49
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {47: {'Cosine8': -0.04998773022620064}}
[INFO 07-13 14:32:23] Scheduler: Running trials [49]...
[INFO 07-13 14:32:24] Scheduler: Retrieved COMPLETED trials: [49].
[INFO 07-13 14:32:24] Scheduler: Fetching data for trials: [49].
[ERROR 2023-07-13 14:32:24,070 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:24,121 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:24,158 MainProcess] boa: Trials so far: 50
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {47: {'Cosine8': -0.04998773022620064}}
[ERROR 2023-07-13 14:32:24,159 MainProcess] boa: Object <wrapper.Wrapper object at 0x16de09780> passed to `object_to_json` (of type <class 'wrapper.Wrapper'>, module: wrapper) is not registered with a corresponding encoder in ENCODER_REGISTRY.
[INFO 2023-07-13 14:32:24,201 MainProcess] boa: Saved JSON-serialized state of optimization to `/Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053/scheduler.json`.
Boa version: 0.8.7.dev4+gae30cf2.d20230713
[INFO 2023-07-13 14:32:24,238 MainProcess] boa: Trials so far: 50
Running trials: 
Will Produce next trials from generation step: GPEI
Best trial so far: {47: {'Cosine8': -0.04998773022620064}}
[INFO 2023-07-13 14:32:24,261 MainProcess] boa: 

##############################################

Trials Completed!
BOA Experiment Run
Output Experiment Dir: /Users/madelinescyphers/Documents/projs_.nosync/boa/docs/examples/boa_runs_20230713T143053
Start Time: 20230713T143053
Version: 0.8.7.dev4+gae30cf2.d20230713
End Time: 20230713T143224
Total Run Time: 90.65117406845093

    trial_index arm_name trial_status generation_method   Cosine8        x0  \
0             0      0_0    COMPLETED             Sobol  2.239105  0.005910   
1             1      1_0    COMPLETED             Sobol  4.136699  0.341347   
2             2      2_0    COMPLETED             Sobol  1.838099  0.302048   
3             3      3_0    COMPLETED             Sobol  2.408117  0.378163   
4             4      4_0    COMPLETED             Sobol  2.030690  0.283629   
5             5      5_0    COMPLETED             Sobol  2.714052  0.096529   
6             6      6_0    COMPLETED             Sobol  3.941725  0.487296   
7             7      7_0    COMPLETED             Sobol  3.478950  0.582199   
8             8      8_0    COMPLETED             Sobol  3.067485  0.395262   
9             9      9_0    COMPLETED             Sobol  3.494017  0.182291   
10           10     10_0    COMPLETED             Sobol  3.746949  0.896021   
11           11     11_0    COMPLETED             Sobol  3.460985  0.252204   
12           12     12_0    COMPLETED             Sobol  1.909430  0.322564   
13           13     13_0    COMPLETED             Sobol  3.083720  0.006783   
14           14     14_0    COMPLETED             Sobol  1.728998  0.594221   
15           15     15_0    COMPLETED             Sobol  2.716962  0.497243   
16           16     16_0    COMPLETED              GPEI  1.576633  0.237948   
17           17     17_0    COMPLETED              GPEI  1.779049  0.299262   
18           18     18_0    COMPLETED              GPEI  1.726575  0.243311   
19           19     19_0    COMPLETED              GPEI  1.313831  0.097879   
20           20     20_0    COMPLETED              GPEI  1.571842  0.356001   
21           21     21_0    COMPLETED              GPEI  2.031018  0.194259   
22           22     22_0    COMPLETED              GPEI  1.090174  0.109818   
23           23     23_0    COMPLETED              GPEI  1.511682  0.051335   
24           24     24_0    COMPLETED              GPEI  1.509907  0.024264   
25           25     25_0    COMPLETED              GPEI  1.218323  0.179122   
26           26     26_0    COMPLETED              GPEI  0.956060  0.073864   
27           27     27_0    COMPLETED              GPEI  1.189037  0.239096   
28           28     28_0    COMPLETED              GPEI  1.161395  0.136238   
29           29     29_0    COMPLETED              GPEI  0.901676  0.141798   
30           30     30_0    COMPLETED              GPEI  0.637187  0.124632   
31           31     31_0    COMPLETED              GPEI  0.699642  0.135534   
32           32     32_0    COMPLETED              GPEI  0.385087  0.078258   
33           33     33_0    COMPLETED              GPEI  0.792845  0.284455   
34           34     34_0    COMPLETED              GPEI  0.447897  0.134221   
35           35     35_0    COMPLETED              GPEI  0.678093  0.096092   
36           36     36_0    COMPLETED              GPEI  0.519007  0.000000   
37           37     37_0    COMPLETED              GPEI  0.147711  0.061834   
38           38     38_0    COMPLETED              GPEI  0.577436  0.155013   
39           39     39_0    COMPLETED              GPEI  0.167808  0.040299   
40           40     40_0    COMPLETED              GPEI -0.026684  0.000000   
41           41     41_0    COMPLETED              GPEI  0.138651  0.000000   
42           42     42_0    COMPLETED              GPEI  0.119586  0.000000   
43           43     43_0    COMPLETED              GPEI  0.068217  0.000000   
44           44     44_0    COMPLETED              GPEI  0.877557  0.002077   
45           45     45_0    COMPLETED              GPEI  1.319131  0.192617   
46           46     46_0    COMPLETED              GPEI  0.046132  0.000000   
47           47     47_0    COMPLETED              GPEI -0.049988  0.000000   
48           48     48_0    COMPLETED              GPEI  0.017012  0.000000   
49           49     49_0    COMPLETED              GPEI -0.014501  0.000000   

          x1        x2        x3        x4        x5        x6        x7  
0   0.141367  0.425610  0.810076  0.635368  0.737481  0.202842  0.678401  
1   0.802491  0.530528  0.982942  0.558278  0.774273  0.698905  0.884335  
2   0.279949  0.768200  0.617394  0.314809  0.049353  0.800600  0.165349  
3   0.272300  0.601005  0.585589  0.075222  0.125974  0.767954  0.901783  
4   0.755290  0.824802  0.287725  0.288463  0.035348  0.849888  0.135928  
5   0.478756  0.827078  0.874856  0.580245  0.656032  0.030549  0.542257  
6   0.817129  0.716379  0.836942  0.999895  0.541045  0.672588  0.288226  
7   0.793198  0.758041  0.570732  0.532217  0.236029  0.958385  0.249541  
8   0.826062  0.535096  0.934967  0.645789  0.598909  0.461659  0.370842  
9   0.651113  0.095934  0.183234  0.885109  0.892330  0.478828  0.958136  
10  0.811340  0.677272  0.186724  0.665177  0.693099  0.585175  0.535108  
11  0.733171  0.100481  0.721839  0.489904  0.966838  0.542897  0.879006  
12  0.660139  0.394390  0.604160  0.333827  0.762729  0.174212  0.219013  
13  0.942449  0.745871  0.035081  0.765784  0.865521  0.793785  0.291791  
14  0.255711  0.124992  0.630445  0.026356  0.738504  0.325613  0.206705  
15  0.624900  0.224264  0.841092  0.816033  0.106921  0.200558  0.707149  
16  0.436693  0.788854  0.432752  0.223048  0.000000  0.791934  0.190430  
17  0.142714  0.705431  0.656360  0.233444  0.058971  0.745862  0.370448  
18  0.410822  0.868419  0.523951  0.380031  0.000000  0.850181  0.000000  
19  0.307514  0.849987  0.395135  0.201189  0.000000  0.744476  0.086379  
20  0.279456  0.268597  0.658234  0.136730  0.615719  0.230335  0.160683  
21  0.320616  0.890703  0.422440  0.106872  0.000000  0.927234  0.191639  
22  0.334398  0.738638  0.416773  0.214001  0.000000  0.615096  0.036945  
23  0.300031  0.909676  0.326049  0.350593  0.000000  0.692053  0.192175  
24  0.465266  0.845982  0.565585  0.156025  0.000000  0.700807  0.000000  
25  0.227855  0.607312  0.337567  0.139496  0.111076  0.550089  0.057904  
26  0.316711  0.580849  0.324352  0.266562  0.000000  0.671654  0.000000  
27  0.310938  0.835434  0.357945  0.179805  0.000000  0.553573  0.000000  
28  0.398810  0.603699  0.190971  0.235709  0.000000  0.638339  0.000000  
29  0.168932  0.520647  0.361278  0.320917  0.000000  0.622821  0.000000  
30  0.432791  0.350707  0.369762  0.234442  0.000000  0.587786  0.000000  
31  0.368736  0.173706  0.457136  0.260419  0.000000  0.555950  0.000000  
32  0.456169  0.246560  0.403644  0.345924  0.000000  0.486633  0.000000  
33  0.408784  0.234788  0.442270  0.188929  0.000000  0.577959  0.000000  
34  0.522861  0.270904  0.377555  0.359571  0.000000  0.393155  0.000000  
35  0.522313  0.246609  0.366340  0.445072  0.000000  0.504924  0.000000  
36  0.599985  0.237315  0.415255  0.301226  0.000000  0.393387  0.000000  
37  0.423821  0.317733  0.418750  0.327921  0.000000  0.429865  0.000000  
38  0.493097  0.315974  0.462648  0.319039  0.000000  0.453536  0.000000  
39  0.416899  0.227089  0.326812  0.318066  0.000000  0.424669  0.000000  
40  0.354855  0.323035  0.382071  0.342152  0.000000  0.359387  0.000000  
41  0.345690  0.310210  0.388130  0.343438  0.000000  0.343695  0.118464  
42  0.296299  0.296043  0.411424  0.398979  0.000000  0.287613  0.000000  
43  0.349576  0.315802  0.394896  0.258612  0.000000  0.339006  0.000000  
44  0.040437  0.434454  0.784951  0.170387  0.212122  0.173831  0.352266  
45  0.136338  0.343907  0.902024  0.049123  0.227745  0.107525  0.229977  
46  0.357688  0.330836  0.372033  0.354738  0.087566  0.369367  0.000000  
47  0.358949  0.363587  0.342969  0.357309  0.000000  0.376619  0.000000  
48  0.309014  0.326131  0.398185  0.349283  0.000000  0.398056  0.000000  
49  0.382214  0.342858  0.310059  0.356361  0.000000  0.353866  0.000000  

##############################################

Get the Best Trial and Output All Trials#

best_fitted_trials uses the data to do a fitting from all trials and with the noise levels you provided (or if no noise levels was provided, it assumed an unknown level of noise and inferred the noise level from the trial runs)

1trial = scheduler.best_fitted_trials()
2trial
{49: {'params': {'x0': 0.0,
   'x1': 0.3589494371881439,
   'x2': 0.3635867439663141,
   'x3': 0.3429694617951464,
   'x4': 0.35730864639376125,
   'x5': 0.0,
   'x6': 0.376619314508331,
   'x7': 0.0},
  'means': {'Cosine8': -0.04991830073003367},
  'cov_matrix': {'Cosine8': {'Cosine8': 1.4031232633680942e-06}}}}

if you need the exact points of the best trial, maybe because you need the trial number of the best trial to plot results, or for any other reason, best_raw_trails does not do any fitting

1trial = scheduler.best_raw_trials()
2trial
{47: {'params': {'x0': 0.0,
   'x1': 0.3589494371881439,
   'x2': 0.3635867439663141,
   'x3': 0.3429694617951464,
   'x4': 0.35730864639376125,
   'x5': 0.0,
   'x6': 0.376619314508331,
   'x7': 0.0},
  'means': {'Cosine8': -0.04998773022620064},
  'cov_matrix': {'Cosine8': {'Cosine8': 0.0}}}}

Output a DataFrame of All Trials#

1boa.scheduler_to_df(scheduler)
trial_index arm_name trial_status generation_method Cosine8 x0 x1 x2 x3 x4 x5 x6 x7
0 0 0_0 COMPLETED Sobol 2.239105 0.005910 0.141367 0.425610 0.810076 0.635368 0.737481 0.202842 0.678401
1 1 1_0 COMPLETED Sobol 4.136699 0.341347 0.802491 0.530528 0.982942 0.558278 0.774273 0.698905 0.884335
2 2 2_0 COMPLETED Sobol 1.838099 0.302048 0.279949 0.768200 0.617394 0.314809 0.049353 0.800600 0.165349
3 3 3_0 COMPLETED Sobol 2.408117 0.378163 0.272300 0.601005 0.585589 0.075222 0.125974 0.767954 0.901783
4 4 4_0 COMPLETED Sobol 2.030690 0.283629 0.755290 0.824802 0.287725 0.288463 0.035348 0.849888 0.135928
5 5 5_0 COMPLETED Sobol 2.714052 0.096529 0.478756 0.827078 0.874856 0.580245 0.656032 0.030549 0.542257
6 6 6_0 COMPLETED Sobol 3.941725 0.487296 0.817129 0.716379 0.836942 0.999895 0.541045 0.672588 0.288226
7 7 7_0 COMPLETED Sobol 3.478950 0.582199 0.793198 0.758041 0.570732 0.532217 0.236029 0.958385 0.249541
8 8 8_0 COMPLETED Sobol 3.067485 0.395262 0.826062 0.535096 0.934967 0.645789 0.598909 0.461659 0.370842
9 9 9_0 COMPLETED Sobol 3.494017 0.182291 0.651113 0.095934 0.183234 0.885109 0.892330 0.478828 0.958136
10 10 10_0 COMPLETED Sobol 3.746949 0.896021 0.811340 0.677272 0.186724 0.665177 0.693099 0.585175 0.535108
11 11 11_0 COMPLETED Sobol 3.460985 0.252204 0.733171 0.100481 0.721839 0.489904 0.966838 0.542897 0.879006
12 12 12_0 COMPLETED Sobol 1.909430 0.322564 0.660139 0.394390 0.604160 0.333827 0.762729 0.174212 0.219013
13 13 13_0 COMPLETED Sobol 3.083720 0.006783 0.942449 0.745871 0.035081 0.765784 0.865521 0.793785 0.291791
14 14 14_0 COMPLETED Sobol 1.728998 0.594221 0.255711 0.124992 0.630445 0.026356 0.738504 0.325613 0.206705
15 15 15_0 COMPLETED Sobol 2.716962 0.497243 0.624900 0.224264 0.841092 0.816033 0.106921 0.200558 0.707149
16 16 16_0 COMPLETED GPEI 1.576633 0.237948 0.436693 0.788854 0.432752 0.223048 0.000000 0.791934 0.190430
17 17 17_0 COMPLETED GPEI 1.779049 0.299262 0.142714 0.705431 0.656360 0.233444 0.058971 0.745862 0.370448
18 18 18_0 COMPLETED GPEI 1.726575 0.243311 0.410822 0.868419 0.523951 0.380031 0.000000 0.850181 0.000000
19 19 19_0 COMPLETED GPEI 1.313831 0.097879 0.307514 0.849987 0.395135 0.201189 0.000000 0.744476 0.086379
20 20 20_0 COMPLETED GPEI 1.571842 0.356001 0.279456 0.268597 0.658234 0.136730 0.615719 0.230335 0.160683
21 21 21_0 COMPLETED GPEI 2.031018 0.194259 0.320616 0.890703 0.422440 0.106872 0.000000 0.927234 0.191639
22 22 22_0 COMPLETED GPEI 1.090174 0.109818 0.334398 0.738638 0.416773 0.214001 0.000000 0.615096 0.036945
23 23 23_0 COMPLETED GPEI 1.511682 0.051335 0.300031 0.909676 0.326049 0.350593 0.000000 0.692053 0.192175
24 24 24_0 COMPLETED GPEI 1.509907 0.024264 0.465266 0.845982 0.565585 0.156025 0.000000 0.700807 0.000000
25 25 25_0 COMPLETED GPEI 1.218323 0.179122 0.227855 0.607312 0.337567 0.139496 0.111076 0.550089 0.057904
26 26 26_0 COMPLETED GPEI 0.956060 0.073864 0.316711 0.580849 0.324352 0.266562 0.000000 0.671654 0.000000
27 27 27_0 COMPLETED GPEI 1.189037 0.239096 0.310938 0.835434 0.357945 0.179805 0.000000 0.553573 0.000000
28 28 28_0 COMPLETED GPEI 1.161395 0.136238 0.398810 0.603699 0.190971 0.235709 0.000000 0.638339 0.000000
29 29 29_0 COMPLETED GPEI 0.901676 0.141798 0.168932 0.520647 0.361278 0.320917 0.000000 0.622821 0.000000
30 30 30_0 COMPLETED GPEI 0.637187 0.124632 0.432791 0.350707 0.369762 0.234442 0.000000 0.587786 0.000000
31 31 31_0 COMPLETED GPEI 0.699642 0.135534 0.368736 0.173706 0.457136 0.260419 0.000000 0.555950 0.000000
32 32 32_0 COMPLETED GPEI 0.385087 0.078258 0.456169 0.246560 0.403644 0.345924 0.000000 0.486633 0.000000
33 33 33_0 COMPLETED GPEI 0.792845 0.284455 0.408784 0.234788 0.442270 0.188929 0.000000 0.577959 0.000000
34 34 34_0 COMPLETED GPEI 0.447897 0.134221 0.522861 0.270904 0.377555 0.359571 0.000000 0.393155 0.000000
35 35 35_0 COMPLETED GPEI 0.678093 0.096092 0.522313 0.246609 0.366340 0.445072 0.000000 0.504924 0.000000
36 36 36_0 COMPLETED GPEI 0.519007 0.000000 0.599985 0.237315 0.415255 0.301226 0.000000 0.393387 0.000000
37 37 37_0 COMPLETED GPEI 0.147711 0.061834 0.423821 0.317733 0.418750 0.327921 0.000000 0.429865 0.000000
38 38 38_0 COMPLETED GPEI 0.577436 0.155013 0.493097 0.315974 0.462648 0.319039 0.000000 0.453536 0.000000
39 39 39_0 COMPLETED GPEI 0.167808 0.040299 0.416899 0.227089 0.326812 0.318066 0.000000 0.424669 0.000000
40 40 40_0 COMPLETED GPEI -0.026684 0.000000 0.354855 0.323035 0.382071 0.342152 0.000000 0.359387 0.000000
41 41 41_0 COMPLETED GPEI 0.138651 0.000000 0.345690 0.310210 0.388130 0.343438 0.000000 0.343695 0.118464
42 42 42_0 COMPLETED GPEI 0.119586 0.000000 0.296299 0.296043 0.411424 0.398979 0.000000 0.287613 0.000000
43 43 43_0 COMPLETED GPEI 0.068217 0.000000 0.349576 0.315802 0.394896 0.258612 0.000000 0.339006 0.000000
44 44 44_0 COMPLETED GPEI 0.877557 0.002077 0.040437 0.434454 0.784951 0.170387 0.212122 0.173831 0.352266
45 45 45_0 COMPLETED GPEI 1.319131 0.192617 0.136338 0.343907 0.902024 0.049123 0.227745 0.107525 0.229977
46 46 46_0 COMPLETED GPEI 0.046132 0.000000 0.357688 0.330836 0.372033 0.354738 0.087566 0.369367 0.000000
47 47 47_0 COMPLETED GPEI -0.049988 0.000000 0.358949 0.363587 0.342969 0.357309 0.000000 0.376619 0.000000
48 48 48_0 COMPLETED GPEI 0.017012 0.000000 0.309014 0.326131 0.398185 0.349283 0.000000 0.398056 0.000000
49 49 49_0 COMPLETED GPEI -0.014501 0.000000 0.382214 0.342858 0.310059 0.356361 0.000000 0.353866 0.000000