hyperas icon indicating copy to clipboard operation
hyperas copied to clipboard

Case of google colab notebook connected to local run time: how to specify then the argument notebook_name?

Open moctarjallo opened this issue 5 years ago • 1 comments

Before filing an issue, please make sure to tick the following boxes.

  • [ ] Make sure your issue hasn't been filed already. Use GitHub search or manually check the existing issues, also the closed ones. Also, make sure to check the FAQ section of our readme.

  • [ ] Install latest hyperas from GitHub: pip install git+git://github.com/maxpumperla/hyperas.git

  • [ ] Install latest hyperopt from GitHub: pip install git+git://github.com/hyperopt/hyperopt.git

  • [ ] We have continuous integration running with Travis and make sure the build stays "green". If, after installing test utilities with pip install pytest pytest-cov pep8 pytest-pep8, you can't successfully run python -m pytest there's very likely a problem on your side that should be addressed before creating an issue.

  • [ ] Create a gist containing your complete script, or a minimal version of it, that can be used to reproduce your issue. Also, add your full stack trace to that gist. In many cases your error message is enough to at least give some guidance.

moctarjallo avatar Feb 18 '20 16:02 moctarjallo

best_run, best_model = optim.minimize(model=create_model,data=data,
                                      algo=tpe.suggest,
                                      max_evals=5,
                                      trials=Trials(),
                                      data_args=(X_train, X_test, Y_train, Y_test),
                                      notebook_name='drive/My Drive/AppliedAI/Human_activity_Regonition/simple_notebook')
X_train, Y_train, X_test, Y_test = data()
print("Evalutation of best performing model:")
print(best_model.evaluate(X_test, Y_test))
print("Best performing model chosen hyper-parameters:")
print(best_run)

Error Message Message: 'Notebook is invalid after preprocessor {}' Arguments: (<nbconvert.preprocessors.tagremove.TagRemovePreprocessor object at 0x7f20a6664be0>,)

NotebookValidationError Traceback (most recent call last) in () 4 trials=Trials(), 5 data_args=(X_train, X_test, Y_train, Y_test), ----> 6 notebook_name='drive/My Drive/AppliedAI/Human_activity_Regonition/simple_notebook') 7 X_train, Y_train, X_test, Y_test = data() 8 print("Evalutation of best performing model:")

6 frames /usr/local/lib/python3.6/dist-packages/nbformat/validator.py in validate(nbdict, ref, version, version_minor, relax_add_props, nbjson) 275 version_minor=version_minor, 276 relax_add_props=relax_add_props): --> 277 raise error 278 279

NotebookValidationError: {'pip_warning': {'packages': ['hyperas']}} is not valid under any of the given schemas

Failed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\-\+\.]+$']:

On instance['cells'][37]['outputs'][1]['data']['application/vnd.colab-display-data+json']: {'pip_warning': {'packages': ['hyperas']}}

Please resolve this error

mr-akashjain avatar Mar 07 '20 09:03 mr-akashjain