Skip to content

fr3fou/matrigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matrigo

👩‍💻 Matrix library written in Go.

This code used to be in github.com/fr3fou/gone, but due to it being used in other places, I decided to extract it in its own repo.

TODO

  • Randomize
  • Transpose
  • Scale
  • AddMatrix
  • Add
  • SubtractMatrix
  • Subtract
  • Multiply
  • Multiply
  • Flatten
  • Unflatten
  • NewFromArray - makes a single row
  • Map
  • Fold
  • Methods to support chaining
  • Determinant
n.Weights[i].
   Multiply(output).                         // weighted sum of the previous layer)
   Add(n.Layers[i+1].Bias).                  // bias
   Map(func(val float64, x, y int) float64 { // activation
       return n.Layers[i+1].Activator.F(val)
   })

References