Luolc / AdaBound

An optimizer that trains as fast as Adam and as good as SGD.
https://www.luolc.com/publications/adabound/
Apache License 2.0
2.9k stars 330 forks source link

Why python 3.6 requirement? #10

Open zippeurfou opened 5 years ago

zippeurfou commented 5 years ago

I don't see any reason why this code would not run in a lower version of python. Could you explain why is there such a requirement?

Luolc commented 5 years ago

Mainly because we only tested AdaBound on Python 3.6 and 3.7 and just leave it as-is before...

Yes, this is a really defensive setting and we are supposed to fix it. I believe no changes are needed for 3.5. But I have no experience with 2.7. It seems that the format syntax is invalid in 2.7. Do you have any idea of making the code compatible with 2.7?