-
Trial 4 failed with parameters: {'ACTOR_LR_RATE': 0.00576513613836057, 'CRITIC_LR_RATE': 0.016747063526072883, 'S_INFO': 6, 'S_LEN': 9, 'TRAIN_SEQ_LEN': 74, 'MODEL_SAVE_INTERVAL': 76, 'BUFFER_NORM_FACTOR': 11, 'CHUNK_TIL_VIDEO_END_CAP': 49, 'M_IN_K': 1017, 'REBUF_PENALTY': 4, 'SMOOTH_PENALTY': 1, 'RAND_RANGE': 1161} because of the following error: The value None could not be cast to float. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
could you share minimal reproducible codes with us? |
Beta Was this translation helpful? Give feedback.
-
I think your objective function returns |
Beta Was this translation helpful? Give feedback.
-
This is the objective function, def objective(trial):
def main(arglist):
Here, is the agent function which unpacks the best_hyperparameters, def agent(agent_id, all_cooked_time, all_cooked_bw, net_params_queue, exp_queue, model_type,best_hyperparams): This is the code on which I'm conducting my Optuna analysis, the study returns values though, but asserts it as a Fail. |
Beta Was this translation helpful? Give feedback.
-
I figured out that instead of returning the tuple with hyperparameters, a return 0 works. |
Beta Was this translation helpful? Give feedback.
As I said the objective function returns
None
because your objective function does not havereturn
.