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_multand made it its own staticmatrix_multfunction, 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
mapis 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!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.