New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run example code - TypeError('require string label') #106
Comments
Hi @bohoro, does it work if you install hyperas from master? It's been ages since I got around to release a new version. |
There is also a problem with comments, try again after deleting comments in your code |
@huseynlilkin while this is absolutely true, I don't think it relates to this issue. |
Hi @maxpumperla , I am facing the same problem with uniform and choice. I tried installing hyperas from master i.e. hyperas 0.4 but I am still facing the same issue. |
sorry to hear that. will look into the issue once back from vacation |
Hi |
same for me, though i did not use the example but hacked it directly into my unet network. |
I had the same error earlier today, but mine was caused by not using double curly braces around my choices. Do you have a spot in your code where you're missing an extra set of braces? before: after: |
ok, at least in my case i realized that i call my network directly, did not see that (stupid me). Traceback (most recent call last): will see into it, what i am doing wrong. |
and the other thing is that my code was calling a function to create the model, like
now the issue is fixed on my side. |
Any update on this issue? I'm still getting the 'require string label' error... |
HI, |
You can't execute the model creation code directly in python. You need to wrap your code in a My understanding is that the reason for this is that hyperas works is by doing template replacement of everything in the |
I have a function named model wherein I am creating layers,fitting to data . And i am calling that fnc from opt.minimize . But i am Still getting this error !! Any clues ?? |
Hello, I realize this is an older thread, but I am getting the same issue as @aydindemircioglu: assert order[-1] == expr Do you have insight on what caused / solved this issue? TIA |
Why is the issue closed? It doesn't seem to be resolved. I (and others) still cannot run the example code without getting the 'TypeError: require string label' at the line I have installed the latest versions of hyperopt and hyperas under python 3.6 model.add(Dropout({{uniform(0, 1)}})) If the issue is resolved, can someone please describe how they are able to run this code without getting the TypError? |
Where's your code? |
I ran the simple.py example just now and it worked fine for me. Steps:
|
Hi,
I am unable to run the first hyperas example. Specifically this line:
The example without hyperas runs fine.
Here is my env
Python 2.7.13
Name: Keras
Version: 2.0.4
Name: hyperas
Version: 0.3
Name: hyperopt
Version: 0.1
I have tried this both via Jupyter and via the python interpreter.
Thanks
The text was updated successfully, but these errors were encountered: