Here's an example of fitting a 3rd order polynomial I worked with recently that might be useful for you. The code is largely part of the pytorch documentation, with an animation to illustrate the process.
https://gist.github.com/jlines/00eae9590d26b31cb98b333e537fcb31
Here's an example of fitting a 3rd order polynomial I worked with recently that might be useful for you. The code is largely part of the pytorch documentation, with an animation to illustrate the process.
https://gist.github.com/jlines/00eae9590d26b31cb98b333e537fcb31