Module Expr Str Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr ListLoad Num Num Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Index Num Index Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad BinOpAdd Num Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num BinOpAdd Num Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list
N/A N/A Test the 20news downloader, if the data is available. N/A numpy np N/A scipy.sparse sp sklearn.utils.testing assert_equal sklearn.utils.testing assert_true sklearn.utils.testing SkipTest sklearn datasets test_20news N/A N/A N/A N/A N/A N/A N/A data N/A N/A datasets fetch_20newsgroups subset all download_if_missing False shuffle False N/A N/A N/A IOError N/A N/A N/A SkipTest Download 20 newsgroups to run this test N/A data2cats N/A N/A datasets fetch_20newsgroups subset all categories N/A N/A data target_names N/A -1 -3 -1 shuffle False N/A N/A assert_equal N/A data2cats target_names N/A N/A data target_names N/A -2 N/A N/A assert_equal N/A N/A N/A N/A np unique N/A data2cats target tolist N/A 0 1 N/A N/A assert_equal N/A len N/A data2cats filenames N/A len N/A data2cats target N/A N/A assert_equal N/A len N/A data2cats filenames N/A len N/A data2cats data N/A entry1 N/A N/A data2cats data N/A 0 N/A category N/A N/A data2cats target_names N/A N/A N/A data2cats target N/A 0 N/A label N/A N/A N/A data target_names index category N/A entry2 N/A N/A data data N/A N/A N/A N/A N/A np where N/A N/A data target label N/A 0 N/A 0 N/A N/A assert_equal entry1 entry2 N/A test_20news_length_consistency N/A N/A N/A N/A N/A Checks the length consistencies within the bunch

    This is a non-regression test for a bug present in 0.16.1.
     N/A N/A N/A data N/A N/A datasets fetch_20newsgroups subset all download_if_missing False shuffle False N/A N/A N/A IOError N/A N/A N/A SkipTest Download 20 newsgroups to run this test N/A data N/A N/A datasets fetch_20newsgroups subset all N/A N/A assert_equal N/A len N/A data N/A data N/A len N/A data data N/A N/A assert_equal N/A len N/A data N/A target N/A len N/A data target N/A N/A assert_equal N/A len N/A data N/A filenames N/A len N/A data filenames N/A test_20news_vectorized N/A N/A N/A N/A N/A N/A SkipTest Test too slow. N/A bunch N/A N/A datasets fetch_20newsgroups_vectorized subset train N/A N/A assert_true N/A N/A sp isspmatrix_csr N/A bunch data N/A N/A assert_equal N/A N/A bunch data shape N/A 11314 107428 N/A N/A assert_equal N/A N/A N/A bunch target shape N/A 0 11314 N/A N/A assert_equal N/A N/A bunch data dtype N/A np float64 N/A bunch N/A N/A datasets fetch_20newsgroups_vectorized subset test N/A N/A assert_true N/A N/A sp isspmatrix_csr N/A bunch data N/A N/A assert_equal N/A N/A bunch data shape N/A 7532 107428 N/A N/A assert_equal N/A N/A N/A bunch target shape N/A 0 7532 N/A N/A assert_equal N/A N/A bunch data dtype N/A np float64 N/A bunch N/A N/A datasets fetch_20newsgroups_vectorized subset all N/A N/A assert_true N/A N/A sp isspmatrix_csr N/A bunch data N/A N/A assert_equal N/A N/A bunch data shape N/A N/A 11314 7532 107428 N/A N/A assert_equal N/A N/A N/A bunch target shape N/A 0 N/A 11314 7532 N/A N/A assert_equal N/A N/A bunch data dtype N/A np float64 N/A