Skip to content

Commit

Permalink
Update godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Oct 17, 2023
1 parent 146de46 commit 22438e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizer/hook/weight_decay.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hook

import "github.com/itsubaki/neu/math/matrix"

// Decay returns a function that applies weight decay to the gradients.
// WeightDecay returns a function that applies weight decay to the gradients.
func WeightDecay(lambda float64) func(params, grads [][]matrix.Matrix) [][]matrix.Matrix {
return func(params, grads [][]matrix.Matrix) [][]matrix.Matrix {
out := make([][]matrix.Matrix, len(params))
Expand Down

0 comments on commit 22438e2

Please sign in to comment.