GAA-UAM / scikit-fda

Functional Data Analysis Python package
https://fda.readthedocs.io
BSD 3-Clause "New" or "Revised" License
290 stars 51 forks source link

Error when calling L2Regularization #413

Closed dcbrien closed 2 years ago

dcbrien commented 2 years ago

I have tried different python versions, but calling:

regularization=L2Regularization(LinearDifferentialOperator())

As in the docs, results in the following error:

TypeError: init() takes 1 positional argument but 2 were given

vnmabus commented 2 years ago

Sorry, you are looking at the docs of the development version, where this has been changed recently. You can either use the development version, or use TikhonovRegularization in older versions instead.

dcbrien commented 2 years ago

Thank you for the update. I will try those.

vnmabus commented 2 years ago

BTW, the latest version released yesterday should match the documentation. Tell me when you try, to close the issue.

dcbrien commented 2 years ago

Thank you. I am using the development version and have had no more issues. I successfully integrated these tools into a custom sklearn pipeline. Thank you for this library.

vnmabus commented 2 years ago

Thank you! Don't hesitate to open another issue if you have further problems.