Keraflow
Deep Learning for Python.
 All Classes Namespaces Functions Pages
Optimizers

Usage of Optimizers

An optimizer tries to minimize score returned by loss function adjusting model parameters. Keraflow model requires user to specify the optimizers to configure the model.

1 model.compile(loss='mse', optimizer='sgd')

Note that sgd stands for SGD. Keraflow uses alias for some build-in optimizers (see below). You could either use the full name or the alias name. Alternatively, You can also pass an optimizer instance to the optimizer argument:

1 from keraflow.optimizers import SGD
2 
3 sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
4 model.compile(loss='mse', optimizer=sgd)

Available Optimizers