Created
September 7, 2018 14:58
-
-
Save kidtronnix/ffcb24f46edbbb90db13cd74359a7e38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nn | |
import "gonum.org/v1/gonum/mat" | |
func (n *MLP) Predict(x mat.Matrix) mat.Matrix { | |
as, _ := n.forward(x) | |
return as[len(as)-1] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment