hyperas
hyperas copied to clipboard
bug: hyperas/examples/simple.py
Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz 11493376/11490434 [==============================] - 336s 29us/step
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.5/dist-packages/hyperas/optim.py in minimize(model, data, algo, max_evals, trials, functions, rseed, notebook_name, verbose, eval_space, return_space) 65 full_model_string=None, 66 notebook_name=notebook_name, ---> 67 verbose=verbose) 68 69 best_model = None
/usr/local/lib/python3.5/dist-packages/hyperas/optim.py in base_minimizer(model, data, functions, algo, max_evals, trials, rseed, full_model_string, notebook_name, verbose, stack) 94 model_str = full_model_string 95 else: ---> 96 model_str = get_hyperopt_model_string(model, data, functions, notebook_name, verbose, stack) 97 temp_file = './temp_model.py' 98 write_temp_files(model_str, temp_file)
/usr/local/lib/python3.5/dist-packages/hyperas/optim.py in get_hyperopt_model_string(model, data, functions, notebook_name, verbose, stack) 176 else: 177 calling_script_file = os.path.abspath(inspect.stack()[stack][1]) --> 178 with open(calling_script_file, 'r') as f: 179 source = f.read() 180
FileNotFoundError: [Errno 2] No such file or directory: '/0_c/
@Jie-Yuan is this executed from a notebook? If so, make sure you understand the notebook example (https://github.com/maxpumperla/hyperas/blob/master/examples/simple_notebook.ipynb) and examine some of the existing issues on this topic. If not, simply make sure that the folder /0_c/ on your machine, from which you seem to be calling hyperas, has proper access rights.