]> git.leonardobizzoni.com Git - mnist/commit
Fixed creation of weight matrix
authorLeonardoBizzoni <leo2002714@gmail.com>
Mon, 27 May 2024 12:32:51 +0000 (14:32 +0200)
committerLeonardoBizzoni <leo2002714@gmail.com>
Mon, 27 May 2024 12:32:51 +0000 (14:32 +0200)
commit46a4b5ba0882f6925715aa28d7ba8aeb1c363c6a
treefbd8562a599ef36c520ccc100af241673221788d
parentf96e1203a488c090ea80927bd718fd99c05c8f93
Fixed creation of weight matrix

A weight was supposed to be a DMatrix<f64> with:
- nrows = node_count in the next layer
- ncols = node_count in the current layer
so that the resulting matrix could be multiplied with the input matrix (column vector)
src/neural_network.rs
src/nn_error.rs