Unanswered
Hello
Looking For Full Working Example Of
So created queue ... now im getting
python scripts/hyper_parameter_optimizer.py
ClearML Task: created new task id=2ba36b52e6004514a41dc52bb2ba169c
ClearML results page:
[I 2024-08-18 13:31:41,133] A new study created in memory with name: 2ba36b52e6004514a41dc52bb2ba169c
Progress report #0 completed, sleeping for 0.25 minutes
2024-08-18 13:31:41,370 - clearml.automation.optimization - INFO - Creating new Task: {'General/layer_1': 256, 'General/layer_2': 384, 'General/batch_size': 160, 'General/epochs': 30}
2024-08-18 13:31:41,627 - clearml.automation.optimization - INFO - Creating new Task: {'General/layer_1': 512, 'General/layer_2': 384, 'General/batch_size': 128, 'General/epochs': 30}
Progress report #1 completed, sleeping for 0.2 minutes
Progress report #2 completed, sleeping for 0.2 minutes
Progress report #3 completed, sleeping for 0.2 minutes
Progress report #4 completed, sleeping for 0.2 minutes
Progress report #5 completed, sleeping for 0.2 minutes
Progress report #6 completed, sleeping for 0.2 minutes
Progress report #7 completed, sleeping for 0.2 minutes
Progress report #8 completed, sleeping for 0.2 minutes
Progress report #9 completed, sleeping for 0.2 minutes
Progress report #10 completed, sleeping for 0.2 minutes
Progress report #11 completed, sleeping for 0.2 minutes
Progress report #12 completed, sleeping for 0.2 minutes
[W 2024-08-18 13:34:14,978] Trial 0 failed with parameters: {'General/layer_1': 256, 'General/layer_2': 384, 'General/batch_size': 160, 'General/epochs': 30} because of the following error: TypeError("'NoneType' object is not subscriptable").
Traceback (most recent call last):
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/optuna/study/_optimize.py", line 196, in _run_trial
value_or_values = func(trial)
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/clearml/automation/optuna/optuna.py", line 92, in objective
objective_metric = objective_metric[0]
TypeError: 'NoneType' object is not subscriptable
[W 2024-08-18 13:34:14,980] Trial 0 failed with value None.
Progress report #13 completed, sleeping for 0.2 minutes
Progress report #14 completed, sleeping for 0.2 minutes
Progress report #15 completed, sleeping for 0.2 minutes
[W 2024-08-18 13:34:56,087] Trial 1 failed with parameters: {'General/layer_1': 512, 'General/layer_2': 384, 'General/batch_size': 128, 'General/epochs': 30} because of the following error: TypeError("'NoneType' object is not subscriptable").
Traceback (most recent call last):
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/optuna/study/_optimize.py", line 196, in _run_trial
value_or_values = func(trial)
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/clearml/automation/optuna/optuna.py", line 92, in objective
objective_metric = objective_metric[0]
TypeError: 'NoneType' object is not subscriptable
[W 2024-08-18 13:34:56,088] Trial 1 failed with value None.
Exception in thread Thread-5 (_daemon):
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
....
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/optuna/study/_optimize.py", line 247, in _run_trial
raise func_err
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/optuna/study/_optimize.py", line 196, in _run_trial
value_or_values = func(trial)
File "/home/razoffice/corsound_vfm/venv_raz/lib/python3.10/site-packages/clearml/automation/optuna/optuna.py", line 92, in objective
objective_metric = objective_metric[0]
TypeError: 'NoneType' object is not subscriptable
['333ed1cf667c4ba390844b757a2625ef', '04921bcae42c403f99de46f1c584372d']
`Study.stop` is supposed to be invoked inside an objective function or a callback.
We are done, good bye
I didnt modified your scripts , only the execution_queue variable
44 Views
0
Answers
3 months ago
3 months ago