About adding the original optimizer

Asked 2 years ago, Updated 2 years ago, 47 views

This question is to the effect that there is a good way to add the original optimizer to the Chainer.

We are currently testing the new optimizer on CNN, which is made only with the regular Python library and Cupy, without using the framework.

Currently, we have tested MNIST and Cifar-10 to ensure that the new optimizer is faster than major algorithms such as Adam.

In the end, I would like to configure ResNet and test it with ILSVRC 2012 data, but I wondered if I could put the algorithm in a proven framework and test it.The Cupy was very easy to use and stable, so I'm trying to figure out if I can make it happen with a Chainer.

I looked at the optimizer code for the Chainer in GitHub, but it seems to have a complex library mechanism as well as optimization algorithms, so I can't figure out how to do it.

If you have any suggestions on how to add the original optimizer to the Chainer, please let me know.Thank you for your cooperation.

chainer

2022-09-30 12:00

1 Answers

From the example, I think SGD is basic.https://github.com/chainer/chainer/blob/v5.4.0/chainer/optimizers/sgd.py#L51

If you copy it and say it doesn't work, could you show me the code you're using?

Thank you for your cooperation.


2022-09-30 12:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.