{"action":"opened","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11897","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11897/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11897/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/11897/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/11897","id":353204700,"node_id":"MDU6SXNzdWUzNTMyMDQ3MDA=","number":11897,"title":"Remove Hardcoded Thresholds in Repr","user":{"login":"ben-ix","id":9159657,"node_id":"MDQ6VXNlcjkxNTk2NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/9159657?v=4","gravatar_id":"","url":"https://api.github.com/users/ben-ix","html_url":"https://github.com/ben-ix","followers_url":"https://api.github.com/users/ben-ix/followers","following_url":"https://api.github.com/users/ben-ix/following{/other_user}","gists_url":"https://api.github.com/users/ben-ix/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-ix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-ix/subscriptions","organizations_url":"https://api.github.com/users/ben-ix/orgs","repos_url":"https://api.github.com/users/ben-ix/repos","events_url":"https://api.github.com/users/ben-ix/events{/privacy}","received_events_url":"https://api.github.com/users/ben-ix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T03:09:34Z","updated_at":"2018-08-23T03:09:34Z","closed_at":null,"author_association":"NONE","body":"#### Description\r\nRepr cuts off outputs when they are going to be longer than 500 characters.\r\n\r\nWhile the [python docs ](https://docs.python.org/3/library/functions.html#repr) dont say it is a requirement, they do state \"For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to eval\"\r\n\r\nIt would be nice to be able to do something similar to numpy, where we can set the threshold ourselves, so if desired repr can be used with eval to reconstruct an object. For reference, this is how np allows users to set it\r\n\r\n```\r\nnp.set_printoptions(threshold=np.inf)\r\n```\r\n\r\n\r\n#### Steps/Code to Reproduce\r\n\r\nCalling repr on any objects with a large number of params\r\n\r\n#### Expected Results\r\nFull output of below (without the ...)\r\n#### Actual Results\r\n```\r\nPipeline(memory=None,\r\n     steps=[('minmaxscaler', MinMaxScaler(copy=True, feature_range=(0, 1))), ('selectfrommodel', SelectFromModel(estimator=LogisticRegression(C=100.0, class_weight=None, dual=False, fit_intercept=True,\r\n          intercept_scaling=1, max_iter=100, multi_class='ovr', n_jobs=1,\r\n          penalty='l2', rando...n_jobs=1,\r\n            oob_score=False, random_state=None, verbose=0,\r\n            warm_start=False))])\r\n```\r\n\r\n_Note the ... after random_\r\n#### Versions\r\n\r\nAll"}}
{"actor":{"display_login":"ben-ix"}}