From 495bb91a481b51b08b6e6cfed7c47ae71df1653a Mon Sep 17 00:00:00 2001 From: Richard Townsend Date: Tue, 18 Jun 2019 10:28:07 +0100 Subject: [PATCH] neural: update to new mat64 API --- neural/network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neural/network.go b/neural/network.go index 2d282fe..5119133 100644 --- a/neural/network.go +++ b/neural/network.go @@ -115,7 +115,7 @@ func (n *Network) Activate(with *mat.Dense, maxIterations int) { } tmp := new(mat.Dense) - tmp.Clone(with) + tmp.CloneFrom(with) // Main loop for i := 0; i < maxIterations; i++ { @@ -197,7 +197,7 @@ func (n *Network) Error(outArg, errArg *mat.Dense, maxIterations int) *mat.Dense // Transpose weights matrix reverseWeights := mat.DenseCopyOf(n.weights) - reverseWeights.Clone(n.weights.T()) + reverseWeights.CloneFrom(n.weights.T()) // We only need a certain number of passes for i := 0; i < maxIterations; i++ {