aistairc / aiaccel

A hyperparameter optimization library for the ABCI.
https://aistairc.github.io/aiaccel/
MIT License
24 stars 5 forks source link

Fix issue with optional arguments that are negative numbers and in exponential notation #303

Closed aramoto99 closed 1 year ago

aramoto99 commented 1 year ago

aiaccelが生成するコマンドは,オプショナル引数は次のように生成されます.

--x0 -1e-3

しかしながら,parser_argumentではこのような指定方法はエラーになります.

エラーを回避するには,次のように指定する必要があります.

--x0=-1e-3

このプルリクエストでは,すべてのコマンドライン引数を,<name>=<value>で指定するように変更しました.




yoshipon commented 1 year ago

ありがとうございます。オプションの名前ですが、enableの後ろは動名詞とか-ionみたいな動作を表す名詞 (これなんていうんやろ…) にしてください。