Optuna is a popular hyperparameter optimization framework in Python. This package is its Lua binding.
Note that this is a prototypical implementation, and it only provide a quite limited functionality of Optuna in Python.
This package requires optuna
because it runs the optuna
CLI internally.
$ pip install optuna
It also requires the rxi/json.lua
package to parse CLI outputs. Please place json.lua
to the project directory, for example, as follows:
$ curl -LO https://raw.githubusercontent.com/rxi/json.lua/master/json.lua
See quadratic.lua
that minimizes a simple quadratic function.
Optuna's CLI reference will also help when defining your search spaces and objective functions.
MIT License.
The dependent package (i.e., rxi/json.lua
) is also distributed under the MIT License.
This project is inspired by the C++ binding for Optuna developed by not522.