orion
orion copied to clipboard
Give clear error message if algo not found
This is very unclear, and terrifying for a new user!
Traceback (most recent call last):
File “/media/martin/the_milano/anaconda3/bin/orion”, line 11, in <module>
sys.exit(main())
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/cli/__init__.py”, line 39, in main
orion_parser.execute(argv)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/cli/base.py”, line 71, in execute
function(args)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/cli/huo\fv nt.py”, line 65, in main
experiment = EVCBuilder().build_from(args)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/io/evc_builder.py”, line 51, in build_from
experiment = ExperimentBuilder().build_from(cmdargs)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/io/experiment_builder.py”, line 239, in build_from
experiment = self.build_from_config(full_config)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/io/experiment_builder.py”, line 270, in build_from_config
experiment.configure(config)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/worker/experiment.py”, line 457, in configure
experiment._instantiate_config(config)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/worker/experiment.py”, line 614, in _instantiate_config
self.algorithms = PrimaryAlgo(space, self.algorithms)
File “/media/martin/the_milano/anaconda3/lib/python3.7/site-packages/orion/core/worker/primary_algo.py”, line 40, in __init__
requirements = self.algorithm.requires
AttributeError: ‘str’ object has no attribute ‘requires’
This is from an old Trello card. Should verify if it is still an issue.
This is not an Issue anymore. When algo is not found we have an error like this :
NotImplementedError: Could not find implementation of BaseAlgorithm, type = 'badalgo' Currently, there is an implementation for types: ['evolutiones', 'asha', 'random', 'hyperband', 'tpe']
We can now close this Issue.
Great! Thanks a lot for verifying this! :)