Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify the generator object to process np.array argument (and convert…
… from string to list) (#355) Summary: Pull Request resolved: #355 We modified the generator object to process np.array argument: In the config dictionary, we specify the target argument of any child class of the `LookaheadAcquisitionFunction` class as a numpy array. The config processed the numpy array as a string using self.from_dict. We have modified (1) the `_str_to_list` function of the Config class in config.py to accept a broader range of string representations of lists, including those with "\n" escape characters and white spaces. The function will properly convert these strings to list. (2) the `_get_acqf_options` function of the `AEPsychGenerator` class in base.py. The function uses regex to detect list argument in a string for any acquisition arguments and calls the `_str_to_list` function to convert it to a list. Reviewed By: crasanders Differential Revision: D58163715 fbshipit-source-id: e0654a011c8168f88321fd022ba08704b3c91b01
- Loading branch information