First time using hyperopt fmin. I have been trying to figure out this error for hours:
Details are attached...
--------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<
command-765520680000376> in <module>
45 algo=tpe.suggest,
46 max_evals=32,
---> 47 trials=spark_trials)
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/fmin.py in fmin(fn, space, algo, max_evals, timeout, loss_threshold, trials, rstate, allow_trials_fmin, pass_expr_memo_ctrl, catch_eval_exceptions, verbose, return_argmin, points_to_evaluate, max_queue_len, show_progressbar, early_stop_fn, trials_save_file)
520 show_progressbar=show_progressbar,
521 early_stop_fn=early_stop_fn,
--> 522 trials_save_file=trials_save_file,
523 )
524
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/spark.py in fmin(self, fn, space, algo, max_evals, timeout, loss_threshold, max_queue_len, rstate, verbose, pass_expr_memo_ctrl, catch_eval_exceptions, return_argmin, show_progressbar, early_stop_fn, trials_save_file)
273 except BaseException as e:
274 logger.debug("fmin thread exits with an exception raised.")
--> 275 raise e
276 else:
277 logger.debug("fmin thread exits normally.")
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/spark.py in fmin(self, fn, space, algo, max_evals, timeout, loss_threshold, max_queue_len, rstate, verbose, pass_expr_memo_ctrl, catch_eval_exceptions, return_argmin, show_progressbar, early_stop_fn, trials_save_file)
269 show_progressbar=show_progressbar,
270 early_stop_fn=early_stop_fn,
--> 271 trials_save_file="", # not supported
272 )
273 except BaseException as e:
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/fmin.py in fmin(fn, space, algo, max_evals, timeout, loss_threshold, trials, rstate, allow_trials_fmin, pass_expr_memo_ctrl, catch_eval_exceptions, verbose, return_argmin, points_to_evaluate, max_queue_len, show_progressbar, early_stop_fn, trials_save_file)
551
552 # next line is where the fmin is actually executed
--> 553 rval.exhaust()
554
555 if return_argmin:
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/fmin.py in exhaust(self)
354 def exhaust(self):
355 n_done = len(self.trials)
--> 356 self.run(self.max_evals - n_done, block_until_done=self.asynchronous)
357 self.trials.refresh()
358 return self
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/fmin.py in run(self, N, block_until_done)
243 initial_n_done = get_n_done()
244 with self.progress_callback(
--> 245 initial=initial_n_done, total=self.max_evals
246 ) as progress_ctx:
247
/usr/lib/python3.7/contextlib.py in __enter__(self)
110 del self.args, self.kwds, self.func
111 try:
--> 112 return next(self.gen)
113 except StopIteration:
114 raise RuntimeError("generator didn't yield") from None
/local_disk0/pythonVirtualEnvDirs/virtualEnv-51fcbaaa-53ec-40b5-b1ea-90a52ba4a1ee/lib/python3.7/site-packages/hyperopt/progress.py in tqdm_progress_callback(initial, total)
23 dynamic_ncols=True,
24 unit="trial",
---> 25 initial=initial,
26 ) as pbar:
27 yield pbar
TypeError: __init__() got an unexpected keyword argument 'postfix'