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
{{ message }}
Repository navigation
Improve _EstimatorPrettyPrinter to use an indentation style a bit more consistent with black #21240
The current indentation style used in _EstimatorPrettyPrinter is too horizontal and suboptimal rendering of complex pipelines and column transformers in the notebook HTML widgets. See for instance:
I think using a more vertical indentation style would help (and would furthermore be more consistent with the black formatting we use in our code base):
For this specific example black might over-do it a bit (see below) although I still find it better than what we currently have.
I agree the current text representation is hard to parse. I also think that the black output is not much better. There is certainty room for improvement.
If I can hand craft the text representation, I would end up with:
Activity
ogrisel commentedon Oct 5, 2021
Any opinion @thomasjpfan in particular?
ogrisel commentedon Oct 5, 2021
Here is alternative to special case indentation of
steps=[]andtransformers=[]:thomasjpfan commentedon Oct 7, 2021
I agree the current text representation is hard to parse. I also think that the black output is not much better. There is certainty room for improvement.
If I can hand craft the text representation, I would end up with: