Open dcalles opened 7 years ago
Hi @dcalles , thanks for pointing me the error. I think I mess up at some point with the code and haven't fixed it. If I find some time during the weekend I'll do it!
Thanks for the response. If you need it, tell me in how I can help you.
If you have time, or you can guide me some bit, please do so. Your aproach is the best I have seen for Hyperband and Tensor Flow and it would be a pity it couldn't be used anymore.
Hey, @dcalles, I've updated the code in #2, the algorithm is now running. I would be pleased if you use it, and chase other bugs, or even extend with new features. Hope you'll have some fun 👍
Thanks @louishenrifranc, you have done an excellent work!!. Just for pointing out a little error I have found, you need to change the first line of the HyperBand.py to:
from models.mnist_model import MNISTModel
Apart from that, would it be possible to serialize the data in order to see the steps with tensorboard as it is explained in https://www.tensorflow.org/get_started/summaries_and_tensorboard ?
Yes, of course, I don't see why it should not be possible! I would do something like this:
Thanks for the found bug. I'll let the code in PR, because I haven't tested it enough. However I think you now have the tools to play with it and ensure that it is workin correctly. Looking for your pull request in case there is bug
Firstable, thanks for sharing a so practical and so well programmed code. I am trying to run it with Tensorflow 1.2, and I am not able to pass the learning iter method, It seems that Tensorflow can't accept the tensor given in the input as valid. I include the output to clarify.
Could you help me to try to run it? Thanks in advance!
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "main.py", line 77, in
tf.app.run()
File "C:\Users\Arsis\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 63, in main
cf.search()
File "D:\IndFin\Negocios\Programacion\ML\TensorFlow\HP\hyperband\hpsearch\HyperBand.py", line 55, in search
self.run_then_return_val_loss(models, r_i)
File "D:\IndFin\Negocios\Programacion\ML\TensorFlow\HP\hyperband\hpsearch\HyperBand.py", line 90, in run_then_return_val_loss
epoch_to_stop=r_i)
File "D:\IndFin\Negocios\Programacion\ML\TensorFlow\HP\hyperband\models\basic_model.py", line 88, in train
self.learning_iter(dataset, sess)
File "D:\IndFin\Negocios\Programacion\ML\TensorFlow\HP\hyperband\models\cifar_model.py", line 80, in learning_iter
self.labels: labels
File "C:\Users\Arsis\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 789, in run
run_metadata_ptr)
File "C:\Users\Arsis\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 945, in _run