Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword Num attr NameLoad Expr Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword Num attr NameLoad Expr Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Str keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr SubscriptLoad NameLoad Index TupleLoad AttributeLoad NameLoad attr Num Expr Call NameLoad CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpSub SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad keyword Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Num ImportFrom alias identifier Import alias Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad keyword NameLoad keyword Num keyword Num keyword Num Expr Call NameLoad NameLoad keyword NameLoad keyword Num keyword Num keyword Num finalbody Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword Num keyword Num attr NameLoad Expr Call NameLoad CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword Num keyword NameLoad keyword Num attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword BinOpMult Num Call NameLoad NameLoad keyword Num keyword Num keyword NameLoad keyword NameLoad keyword Num attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num keyword Num keyword NameLoad keyword Num For NameStore Call NameLoad Num body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index AttributeLoad NameLoad attr Slice Expr Call NameLoad UnaryOpNot Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Num Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Str For NameStore TupleLoad Str Str Str Str Str body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad UnaryOpNot Call AttributeLoad NameLoad attr CompareEq NameLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad keyword Str keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword Str keyword Num attr NameLoad Expr Call NameLoad UnaryOpNot Call AttributeLoad NameLoad attr CompareEq NameLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Num decorator_list
N/A N/A numpy np sklearn.utils check_array sklearn.utils.testing assert_array_almost_equal sklearn.utils.testing assert_array_equal sklearn.utils.testing assert_equal sklearn.utils.testing assert_true sklearn.utils.testing assert_less sklearn.utils.testing assert_raises sklearn.utils.testing ignore_warnings sklearn.utils.testing TempMemmap sklearn.decomposition DictionaryLearning sklearn.decomposition MiniBatchDictionaryLearning sklearn.decomposition SparseCoder sklearn.decomposition dict_learning_online sklearn.decomposition sparse_encode N/A rng_global N/A N/A N/A np random RandomState 0 N/A N/A n_samples n_features N/A 10 8 N/A X N/A N/A rng_global randn n_samples n_features test_dict_learning_shapes N/A N/A N/A N/A N/A n_components 5 N/A dico N/A N/A N/A DictionaryLearning n_components random_state 0 fit X N/A N/A assert_true N/A N/A N/A dico components_ shape N/A n_components n_features N/A test_dict_learning_overcomplete N/A N/A N/A N/A N/A n_components 12 N/A dico N/A N/A N/A DictionaryLearning n_components random_state 0 fit X N/A N/A assert_true N/A N/A N/A dico components_ shape N/A n_components n_features N/A test_dict_learning_reconstruction N/A N/A N/A N/A N/A n_components 12 N/A dico N/A DictionaryLearning n_components transform_algorithm omp transform_alpha 0.001 random_state 0 N/A code N/A N/A N/A N/A dico fit X transform X N/A N/A assert_array_almost_equal N/A N/A np dot code N/A dico components_ X N/A N/A N/A dico set_params transform_algorithm lasso_lars N/A code N/A N/A dico transform X N/A N/A assert_array_almost_equal N/A N/A np dot code N/A dico components_ X decimal 2 N/A test_dict_learning_reconstruction_parallel N/A N/A N/A N/A N/A n_components 12 N/A dico N/A DictionaryLearning n_components transform_algorithm omp transform_alpha 0.001 random_state 0 n_jobs -1 N/A code N/A N/A N/A N/A dico fit X transform X N/A N/A assert_array_almost_equal N/A N/A np dot code N/A dico components_ X N/A N/A N/A dico set_params transform_algorithm lasso_lars N/A code N/A N/A dico transform X N/A N/A assert_array_almost_equal N/A N/A np dot code N/A dico components_ X decimal 2 N/A test_dict_learning_lassocd_readonly_data N/A N/A N/A N/A N/A n_components 12 N/A N/A TempMemmap X X_read_only N/A N/A dico N/A DictionaryLearning n_components transform_algorithm lasso_cd transform_alpha 0.001 random_state 0 n_jobs -1 N/A code N/A N/A N/A N/A dico fit X_read_only transform X_read_only N/A N/A assert_array_almost_equal N/A N/A np dot code N/A dico components_ X_read_only decimal 2 N/A test_dict_learning_nonzero_coefs N/A N/A N/A N/A N/A n_components 4 N/A dico N/A DictionaryLearning n_components transform_algorithm lars transform_n_nonzero_coefs 3 random_state 0 N/A code N/A N/A N/A N/A dico fit X transform N/A X N/A N/A N/A np newaxis 1 N/A N/A assert_true N/A N/A len N/A N/A np flatnonzero code 3 N/A N/A N/A dico set_params transform_algorithm omp N/A code N/A N/A dico transform N/A X N/A N/A N/A np newaxis 1 N/A N/A assert_equal N/A len N/A N/A np flatnonzero code 3 N/A test_dict_learning_unknown_fit_algorithm N/A N/A N/A N/A N/A n_components 5 N/A dico N/A DictionaryLearning n_components fit_algorithm <unknown> N/A N/A assert_raises ValueError N/A dico fit X N/A test_dict_learning_split N/A N/A N/A N/A N/A n_components 5 N/A dico N/A DictionaryLearning n_components transform_algorithm threshold random_state 0 N/A code N/A N/A N/A N/A dico fit X transform X N/A N/A dico split_sign True N/A split_code N/A N/A dico transform X N/A N/A assert_array_equal N/A N/A split_code N/A N/A N/A n_components N/A split_code N/A N/A N/A n_components code N/A test_dict_learning_online_shapes N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A n_components 8 N/A N/A code dictionary N/A dict_learning_online X n_components n_components alpha 1 random_state rng N/A N/A assert_equal N/A code shape N/A n_samples n_components N/A N/A assert_equal N/A dictionary shape N/A n_components n_features N/A N/A assert_equal N/A N/A N/A np dot code dictionary shape N/A X shape N/A test_dict_learning_online_verbosity N/A N/A N/A N/A N/A n_components 5 sklearn.externals.six.moves cStringIO StringIO N/A sys N/A old_stdout N/A sys stdout N/A N/A N/A N/A sys stdout N/A StringIO N/A dico N/A MiniBatchDictionaryLearning n_components n_iter 20 verbose 1 random_state 0 N/A N/A N/A dico fit X N/A dico N/A MiniBatchDictionaryLearning n_components n_iter 20 verbose 2 random_state 0 N/A N/A N/A dico fit X N/A N/A dict_learning_online X n_components n_components alpha 1 verbose 1 random_state 0 N/A N/A dict_learning_online X n_components n_components alpha 1 verbose 2 random_state 0 N/A N/A N/A sys stdout old_stdout N/A N/A assert_true N/A N/A N/A dico components_ shape N/A n_components n_features N/A test_dict_learning_online_estimator_shapes N/A N/A N/A N/A N/A n_components 5 N/A dico N/A MiniBatchDictionaryLearning n_components n_iter 20 random_state 0 N/A N/A N/A dico fit X N/A N/A assert_true N/A N/A N/A dico components_ shape N/A n_components n_features N/A test_dict_learning_online_overcomplete N/A N/A N/A N/A N/A n_components 12 N/A dico N/A N/A N/A MiniBatchDictionaryLearning n_components n_iter 20 random_state 0 fit X N/A N/A assert_true N/A N/A N/A dico components_ shape N/A n_components n_features N/A test_dict_learning_online_initialization N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A dico N/A N/A N/A MiniBatchDictionaryLearning n_components n_iter 0 dict_init V random_state 0 fit X N/A N/A assert_array_equal N/A dico components_ V N/A test_dict_learning_online_partial_fit N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A V N/A N/A N/A np sum N/A V 2 axis 1 N/A N/A N/A N/A np newaxis N/A dict1 N/A N/A N/A MiniBatchDictionaryLearning n_components n_iter N/A 10 N/A len X batch_size 1 alpha 1 shuffle False dict_init V random_state 0 fit X N/A dict2 N/A MiniBatchDictionaryLearning n_components alpha 1 n_iter 1 dict_init V random_state 0 N/A i N/A range 10 N/A N/A sample X N/A N/A N/A N/A dict2 partial_fit N/A sample N/A N/A N/A np newaxis N/A N/A N/A assert_true N/A N/A N/A np all N/A N/A sparse_encode X N/A dict1 components_ alpha 1 0 N/A N/A assert_array_almost_equal N/A dict1 components_ N/A dict2 components_ decimal 2 N/A test_sparse_encode_shapes N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A V N/A N/A N/A np sum N/A V 2 axis 1 N/A N/A N/A N/A np newaxis N/A algo N/A lasso_lars lasso_cd lars omp threshold N/A N/A code N/A sparse_encode X V algorithm algo N/A N/A assert_equal N/A code shape N/A n_samples n_components N/A test_sparse_encode_input N/A N/A N/A N/A N/A n_components 100 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A V N/A N/A N/A np sum N/A V 2 axis 1 N/A N/A N/A N/A np newaxis N/A Xf N/A check_array X order F N/A algo N/A lasso_lars lasso_cd lars omp threshold N/A N/A a N/A sparse_encode X V algorithm algo N/A b N/A sparse_encode Xf V algorithm algo N/A N/A assert_array_almost_equal a b N/A test_sparse_encode_error N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A V N/A N/A N/A np sum N/A V 2 axis 1 N/A N/A N/A N/A np newaxis N/A code N/A sparse_encode X V alpha 0.001 N/A N/A assert_true N/A N/A N/A np all N/A code 0 N/A N/A assert_less N/A N/A np sqrt N/A N/A np sum N/A N/A N/A N/A np dot code V X 2 0.1 N/A test_sparse_encode_error_default_sparsity N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A X N/A N/A rng randn 100 64 N/A D N/A N/A rng randn 2 64 N/A code N/A N/A ignore_warnings sparse_encode X D algorithm omp n_nonzero_coefs None N/A N/A assert_equal N/A code shape N/A 100 2 N/A test_unknown_method N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A N/A assert_raises ValueError sparse_encode X V algorithm <unknown> N/A test_sparse_coder_estimator N/A N/A N/A N/A N/A n_components 12 N/A rng N/A N/A N/A np random RandomState 0 N/A V N/A N/A rng randn n_components n_features N/A V N/A N/A N/A np sum N/A V 2 axis 1 N/A N/A N/A N/A np newaxis N/A code N/A N/A N/A SparseCoder dictionary V transform_algorithm lasso_lars transform_alpha 0.001 transform X N/A N/A assert_true N/A N/A N/A np all N/A code 0 N/A N/A assert_less N/A N/A np sqrt N/A N/A np sum N/A N/A N/A N/A np dot code V X 2 0.1 N/A