Closed FBruzzesi closed 1 year ago
I'm also OK with removing the entire check. Mainly because the internal method should already be doing that and this way we'll need to make fewer assumptions.
I'm also OK with removing the entire check. Mainly because the internal method should already be doing that and this way we'll need to make fewer assumptions.
To be completely pedantic, the check_X_y
function call checks and converts X and y to arrays. This allows to then access .shape
attribute to know how many samples are there and compute the decay.
Now both approaches feel wrong and with shortcomings:
.shape
or len
in the general case (I noticed this by running unit tests) and I would be unsure how to proceed.Opinions?
Not having a check doesn't allow to access .shape or len in the general case (I noticed this by running unit tests) and I would be unsure how to proceed.
Ah, I forgot about that. That's a fair point. I guess the simplest solution is to offer a flag to the end-user and to defer the responsibility of applying the check to them? That said, I think most of the time X
will be .shape
-able or len()
-able so the default could be True
. Or am I missing something?
I guess the simplest solution is to offer a flag to the end-user and to defer the responsibility of applying the check to them?
That's reasonable!
That said, I think most of the time
X
will be.shape
-able orlen()
-able so the default could beTrue
With such default the scikit-learn tests would fail. I will add a big warning in the docstring 😁
With such default the scikit-learn tests would fail. I will add a big warning in the docstring 😁
There are a lot of components in this library that fail the standard checks. That's ok. It's not ideal, but given how "non-standard" some of these ideas are ... it's fine to turn a test off sometimes. Adding a warning to the docstring is fair though!
Description
Relaxes the check for
X
inDecayEstimator
by delegating the actual checks to the given estimator. This fixes #573 and allows estimators that do not needX
features. Remark, as discussed in the issue, it may be worth it to completely remove the check.Type of change
Checklist: