You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Given a known search space which only consists of 2 parameters, for which there are only 2 choices, the total number of candidates is 4. However, when running a using grid search, even with n_workers=1, the total number of trials is 5. The first trial configuration seems to be duplicated.
To reproduce
Steps to reproduce the behavior:
Python 3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import syne_tune
>>> print(syne_tune.__version__)
0.3.4
The problem example:
#test.pyimportloggingfromsyne_tuneimportReporterfromargparseimportArgumentParserimportdatetimeimportosdefget_current_time():
returndatetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f")
if__name__=='__main__':
root=logging.getLogger()
root.setLevel(logging.INFO)
parser=ArgumentParser()
parser.add_argument('--width', type=int)
parser.add_argument('--height', type=int)
parser.add_argument('--st_checkpoint_dir', type=str, default=None)
args=parser.parse_args()
# Create a folder with the current time and save the arguments as a text into itcurrent_time=get_current_time()
os.mkdir(current_time)
withopen(os.path.join(current_time, "args.txt"), "w") asf:
f.write(str(args))
report=Reporter()
forstepinrange(100):
dummy_score= (0.1+args.width*step/100) ** (-1) +args.height*0.1report(step=step, mean_loss=dummy_score, epoch=step+1)
Please note that I have now checked the most recent version of the code and it does not seem to be happening. I have not changed anything in the configuration but simply cloned the repo and reinstalled the dependency.
Describe the bug
Given a known search space which only consists of 2 parameters, for which there are only 2 choices, the total number of candidates is 4. However, when running a using grid search, even with
n_workers=1
, the total number of trials is 5. The first trial configuration seems to be duplicated.To reproduce
Steps to reproduce the behavior:
The problem example:
Gives:
Expected behavior
The expected behavior is that the number of trials is 4, and that the first trial is not duplicated.
Paste the output of the
pip freeze
command below:Desktop (please complete the following information):
Thank you for your help and amazing work!
The text was updated successfully, but these errors were encountered: