hyperas: IndentationError: unexpected indent
Hey, I just installed on python 3.4.2 and I’m using the PyCharm IDE. I’ve opened the example file in my ide and attempted to run it. The following error occurs:
Using Theano backend.
Traceback (most recent call last):
File "D:/Dropbox/Dropbox/PhD/My Work/Code/Paper 2/src/temp.py", line 77, in <module>
trials=Trials())
File "C:\Anaconda3\envs\py34\lib\site-packages\hyperas\optim.py", line 42, in minimize
notebook_name=notebook_name, verbose=verbose)
File "C:\Anaconda3\envs\py34\lib\site-packages\hyperas\optim.py", line 62, in base_minimizer
model_str = get_hyperopt_model_string(model, data, notebook_name, verbose, stack)
File "C:\Anaconda3\envs\py34\lib\site-packages\hyperas\optim.py", line 132, in get_hyperopt_model_string
imports = extract_imports(cleaned_source, verbose)
File "C:\Anaconda3\envs\py34\lib\site-packages\hyperas\utils.py", line 31, in extract_imports
tree = ast.parse(source)
File "C:\Anaconda3\envs\py34\lib\ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 35
if conditional({{choice(['three', 'four'])}}) == 'four':
^
IndentationError: unexpected indent
I understand that this may be because there is a mixing of tabs and spaces? I will be attempting to resolve it under that understanding next and update here if that is the case.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 16 (2 by maintainers)
Commits related to this issue
- Merge pull request #73 from Ambros94/master Updated readme examples for keras 2.0, solving #67 #56 — committed to maxpumperla/hyperas by maxpumperla 7 years ago
above PR was just merged and shows an example of how to run an example without any of the issues.
Yes, the pip version is not up to date. And, there’s no such things as a dummy question 😃
pip install git+https://github.com/maxpumperla/hyperas.git@master