Closed wangbingjie closed 7 months ago
Hi Sorry, I missed this issue. Do you recall if this was with SedModel or SpecModel? The latter issue seems like a mismatch between the length of the regularization vector and polyorder, note that in SedModel the zero term is treated as an explicit separate parameter (spec_norm
) but this entire class will be deprecated.
The other is a real bug.
I've pushed a fix for the polyorder -> scalar bug
I think it was SpecModel (I don't remember using SedModel). Thanks for taking care of it!
oops I just realized that you only fixed the polyorder -> scalar bug. sorry.. reopening this issue.
pushed a fix for the other bug, caused by mistranslation from PolySedModel.
Thanks @wangbingjie for noticing these issues!
When using the polynomial regularization, I had to modify the following codes in the function
spec_calibration
insedmodel.py
:The first change is to make
order
an integer, so that it can be passed tonp.eye()
, whereas the second is to match the dimensions of the arrays. I am not sure if this is a real bug or is something related my setup, so I am raising an issue here.code versions: python 3.8, numpy 1.24.4