Unable to run example code - TypeError('require string label')
See original GitHub issueHi,
I am unable to run the first hyperas example. Specifically this line:
>>> model.add(Dropout({{uniform(0, 1)}}))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/brohoro/Documents/PyProjects/envs/tensorflow/lib/python2.7/site-packages/hyperopt/pyll_utils.py", line 21, in wrapper
raise TypeError('require string label')
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
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Error trying to pass list to hyperas as a parameter
The problem is with this line: model.add(Dropout({{uniform(dropout)}})). The variable dropout is defined within the scope of your model() ...
Read more >Developers - Unable to run example code - TypeError('require string ...
Unable to run example code - TypeError('require string label')
Read more >TypeError: can't assign to property "x" on "y": not an object
In strict mode, a TypeError is raised when attempting to create a property on primitive value such as a symbol, a string, a...
Read more >How to Fix TypeError Exceptions in Python - Rollbar
The Python TypeError is an exception that occurs when the data type of an object in an operation is inappropriate. Learn how to...
Read more >Typeerror: str object is not callable – How to Fix in Python
You pass a variable named str as a parameter to the str() function. When you call a string like a function. In the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sorry to hear that. will look into the issue once back from vacation
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.