You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rflamary
changed the title
[API] fit, predict and otehr fnction should acept X,y,smaple_weight as first parameters by default
[API] fit, predict and other functions should accept X,y,smaple_weight as first parameters by default
Feb 14, 2024
I'd like to start contributing to skada and it seems this issue could be a good start. Is there a consensus on @rflamary 's suggestion? If yes, is it OK if I start a PR on this?
This will force 'sample_domain' to be always named, removing the risk of putting it instead of weights (technically, we won't be able to spot the problem as we allow 'sample_domain' to be given as None).
In order to stay compatible with
skleran
API we want all estimatoer (and Adapters) to have functions that accept unnamedsample_weight
by defalult.For the moment we have for Adapter and DAEstimator:
I suggest we change it to
that will allow to do things like
the named sample_domain will still be necessary for pipelines
The text was updated successfully, but these errors were encountered: