Dear researchers,

I am trying to fit a FTIR spectrum with a reference spectrum using linear regression. However, I ended up with errors regarding the shape mismatch of the files used. I have tried my best to solve it but I have exhausted the best of my knowledge. I seek your advice on this Python code or how to handle this dataset. Considering the size of the query, I am sharing the Stackoverflow link here.

https://stackoverflow.com/questions/78234091/fitting-a-curve-using-linear-regression

Any help is highly appreciated.

More Rahul Suresh's questions See All
Similar questions and discussions