skrub icon indicating copy to clipboard operation
skrub copied to clipboard

FEA add link for HTML representation

Open glemaitre opened this issue 1 year ago • 8 comments

This PR add the necessary class and function to add a link to the documentation when showing the HTML representation of an estimator. Unfortunately, there is a bug in scikit-learn that will be corrected in 1.6 and we need to vendor the fix and inherit from the mixin.

glemaitre avatar Sep 02 '24 21:09 glemaitre

if the bug is in scikit-learn and this is not critical, could we just wait for it to be fix in scikit-learn without vendoring the htmlmixin class? also once it is fixed in scikit-learn would we still need to inherit from a private scikit-learn class?

jeromedockes avatar Sep 03 '24 07:09 jeromedockes

could we just wait for it to be fix in scikit-learn without vendoring the htmlmixin class?

Yes but we need to bump the minimum version

also once it is fixed in scikit-learn would we still need to inherit from a private scikit-learn class?

Actually, we don't need to. We only need to set the class attributes. BaseEstimator is inheriting from this private mixin.

glemaitre avatar Sep 03 '24 07:09 glemaitre

Yes but we need to bump the minimum version

This is somewhat unrelated to this PR, but we were thinking with @jeromedockes whether or not we should try to support as many Python and scikit-learn versions as possible, for many potential users are often stuck with an old Python version (e.g. APHP). We can talk about this idea somewhere else, though.

Vincent-Maladiere avatar Sep 03 '24 07:09 Vincent-Maladiere

@Vincent-Maladiere I share the same feeling and this is the reason why to vendor for the moment as a fix.

glemaitre avatar Sep 03 '24 07:09 glemaitre

@glemaitre could you do a

git commit --allow-empty -m '[doc build]' && git push

so we can see the new TableVectorizer display in the examples? thanks!

jeromedockes avatar Sep 03 '24 07:09 jeromedockes

@glemaitre ok, I misread your first message. I'm +0 or +1 as long as we don't need to bump the minimal version.

Vincent-Maladiere avatar Sep 04 '24 12:09 Vincent-Maladiere

What is the status of this PR?

rcap107 avatar Jun 30 '25 08:06 rcap107

@glemaitre I can take over this one if you prefer

Vincent-Maladiere avatar Jun 30 '25 10:06 Vincent-Maladiere