The default interface for this crate is somewhat tricky to use, especially if you want to just run Levenberg-Marquardt to pick coefficients for a simple equation with only one input and one output, so I've come up with a little helper for my own use to make things a little bit more convenient, and I thought it might be worth upstreaming it.
Here's how it's used: (assuming y = f(ws, x), where ws are the coefficients we want to calculate)
The default interface for this crate is somewhat tricky to use, especially if you want to just run Levenberg-Marquardt to pick coefficients for a simple equation with only one input and one output, so I've come up with a little helper for my own use to make things a little bit more convenient, and I thought it might be worth upstreaming it.
Here's how it's used: (assuming
y = f(ws, x)
, wherews
are the coefficients we want to calculate)As you can see it's dead simple to use and it doesn't require any
nalgebra
acrobatics as it only uses plain old slices and arrays to pass data.Feel free to close this PR if you feel this is unnecessary.