python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to code Pytorch to fit a different polynomal to every column/row in an image?
Fitting a single polynomial to a bunch of data is pretty easy in Pytorch using an nn.Linear layer. I've included a trivial example at the end of this post. But suppose I have tons of data split into g...
AstroBen
Votes: 0
Answers: 1
Passing a dictonary to `scipy.optimize.least_squares`
I have a couple of functions that are defined in an external library. I cannot change the arguments or contents of these functions. Take as an example the following functions (although the originals a...
Sito
Votes: 0
Answers: 1
Fitting a rectangular function to real data points
I would like to fit a periodic rectangle function to my data. I have tried this with the least squares method using curve_fit from scipy.optimize. Unfortunately, the optimization does not converge.
He...
frevler
Votes: 0
Answers: 1