Helper class for Adam */
| 308 | |
| 309 | /** Helper class for Adam */ |
| 310 | class Adam : public Optimizer { |
| 311 | public: |
| 312 | Adam(float _lr = 1e-4, float _weight_decay = 0, float _beta1 = 0.999, float _beta2 = 0.99999, float _epsilon = 1e-8, |
| 313 | const LRSchedule &_schedule = "linear") : |
| 314 | Optimizer("Adam", 2, _lr, _weight_decay, _schedule) { |
| 315 | beta1 = _beta1; |
| 316 | beta2 = _beta2; |
| 317 | epsilon = _epsilon; |
| 318 | } |
| 319 | }; |
| 320 | |
| 321 | } // namespace graphvite |
nothing calls this directly
no outgoing calls
no test coverage detected