selfint / rust-ml

Rust machine learning library
0 stars 0 forks source link

Refactor weight gradients calculation #35

Closed selfint closed 3 years ago

selfint commented 3 years ago

How to: (roughly)

Inputs:

Output:

Calculation: errors * prev_activations.T

This yields an NxM matrix (Nx1 • 1xM = NxM)

selfint commented 3 years ago

works, but maybe there is a better way to use ndarray to perform the transposes (instead of using from_shape_vec)