You are browsing as a guest. Sign up (or log in) to start making projects!

13h 58m 42s logged

Dycosystem — Devlog

What’s up guys! Small but satisfying update.

I went back through my Matrix class and actually fixed a bug that was sitting in the matrix multiplication code — I was resetting my running sum inside the innermost loop instead of before it, so it was only ever keeping the last multiplication instead of adding them all up. Classic off-by-scope mistake.

Fixed: matrix multiplication

  • Moved the sum reset outside the loop so it actually accumulates properly
  • Pulled it out of scalar_mult and made it its own static matrix_mult function, since cramming two different operations into one method never made much sense

New: map and map_index

  • map(fx) runs a function over every value in the matrix
  • map_index(fx) does the same but also passes in the row/column, so the function can behave differently depending on position
  • This is going to matter a lot once I get to activation functions — applying something like sigmoid to every node is exactly what map is for

New: print_table

  • Small helper so I stop retyping console.table(this.matrix_values) everywhere

Why this matters

Feels like boring plumbing work, but this is the stuff the whole neural network is going to be built on top of. I’d rather get it solid now than debug it later once there’s an actual brain depending on it.

Thanks for reading, see you in the next one!

0
9

Comments 0

No comments yet. Be the first!