-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[WIP] New __repr__ and/or pretty printing of estimators #7618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b0d252b
initial draft of new __repr__
amueller 9029f11
add get_n_features
amueller 6e90a72
add some implementations of get_n_features
amueller a8be02b
minimal smoke test
amueller 34ac714
_fit_X can be None
amueller c4883c5
docstring and return value for set_print
amueller 3054824
change test for misleading ValueError in OneClassSVM
amueller 2d122ef
don't validate parameters in ``__init__``
amueller 1fc4caa
simplified a bit and removed ``__str__`` as it doesn't really seem to…
amueller 50e3e5e
add a warning to the docstring
amueller 39d8ef2
fixed doctest on gridsearch, added comment for _repr_pretty.
amueller e1b9178
Merge branch 'master' into more_repr
amueller e6f3207
allow class attributes or methods to end with _
amueller d1b2b12
add _repr_html_
amueller 190cccc
go html all the way, never change repr
amueller 3e95f53
use jquery for interactive _repr_html_
amueller b97fdd8
recursive call to _repr_html
amueller 2df5aa4
get rid of extra ","
amueller b0e62df
remove set_print from common tests
amueller 01ed82e
pep8
amueller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want IPython to handle the fallback case, you can use
IPython.display.HTML(thing)
.