Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore BinOpMult ListLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore BinOpDiv Num NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Assign NameStore Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad CompareGt NameLoad Num attr Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args defaults body For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad 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 AttributeLoad AttributeLoad NameLoad attr attr Num keyword TupleLoad Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword TupleLoad Num BinOpAdd NameLoad Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore TupleLoad TupleLoad Str Call NameLoad keyword Num TupleLoad Str Call NameLoad keyword Str TupleLoad Str Call NameLoad keyword Num TupleLoad Str Call NameLoad keyword Num For TupleStore NameStore NameStore NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Assign NameStore Call NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num keyword NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice Num Expr Call NameLoad CompareIn Call NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad 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 AttributeLoad AttributeLoad NameLoad attr attr Num keyword TupleLoad NameLoad Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad BinOpAdd NameLoad Num NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num keyword TupleLoad NameLoad BinOpAdd NameLoad Num Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Str keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num BinOpDiv NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num For NameStore ListLoad NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad keyword Num attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Num NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr keyword Num keyword Num decorator_list
N/A N/A numpy np scipy.linalg block_diag scipy.sparse csr_matrix scipy.special psi sklearn.decomposition LatentDirichletAllocation sklearn.decomposition._online_lda _dirichlet_expectation_1d _dirichlet_expectation_2d sklearn.utils.testing assert_allclose sklearn.utils.testing assert_true sklearn.utils.testing assert_array_almost_equal sklearn.utils.testing assert_almost_equal sklearn.utils.testing assert_greater_equal sklearn.utils.testing assert_raises_regexp sklearn.utils.testing if_safe_multiprocessing_with_blas sklearn.exceptions NotFittedError sklearn.externals.six.moves xrange _build_sparse_mtx N/A N/A N/A N/A N/A n_topics 3 N/A block N/A n_topics N/A N/A np ones N/A 3 3 N/A blocks N/A N/A block n_topics N/A X N/A block_diag blocks N/A X N/A csr_matrix X N/A N/A n_topics X N/A test_lda_default_prior_params N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A prior N/A 1.0 n_topics N/A lda_1 N/A LatentDirichletAllocation n_topics n_topics doc_topic_prior prior topic_word_prior prior random_state 0 N/A lda_2 N/A LatentDirichletAllocation n_topics n_topics random_state 0 N/A topic_distr_1 N/A N/A lda_1 fit_transform X N/A topic_distr_2 N/A N/A lda_2 fit_transform X N/A N/A assert_almost_equal topic_distr_1 topic_distr_2 N/A test_lda_fit_batch N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics evaluate_every 1 learning_method batch random_state rng N/A N/A N/A lda fit X N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A component N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A component argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A test_lda_fit_online N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics learning_offset 10.0 evaluate_every 1 learning_method online random_state rng N/A N/A N/A lda fit X N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A component N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A component argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A test_lda_partial_fit N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics learning_offset 10.0 total_samples 100 random_state rng N/A i N/A xrange 3 N/A N/A N/A N/A lda partial_fit X N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A c N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A c argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A test_lda_dense_input N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics learning_method batch random_state rng N/A N/A N/A lda fit N/A N/A X toarray N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A component N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A component argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A test_lda_transform 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 randint 5 size N/A 20 10 N/A n_topics 3 N/A lda N/A LatentDirichletAllocation n_topics n_topics random_state rng N/A X_trans N/A N/A lda fit_transform X N/A N/A assert_true N/A N/A N/A X_trans 0.0 any N/A N/A assert_array_almost_equal N/A N/A np sum X_trans axis 1 N/A N/A np ones N/A N/A X_trans shape N/A 0 N/A test_lda_fit_transform N/A N/A N/A N/A N/A method N/A online batch N/A N/A rng N/A N/A N/A np random RandomState 0 N/A X N/A N/A rng randint 10 size N/A 50 20 N/A lda N/A LatentDirichletAllocation n_topics 5 learning_method method random_state rng N/A X_fit N/A N/A lda fit_transform X N/A X_trans N/A N/A lda transform X N/A N/A assert_array_almost_equal X_fit X_trans 4 N/A test_lda_partial_fit_dim_mismatch N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A n_topics N/A N/A rng randint 3 6 N/A n_col N/A N/A rng randint 6 10 N/A X_1 N/A N/A N/A np random randint 4 size N/A 10 n_col N/A X_2 N/A N/A N/A np random randint 4 size N/A 10 N/A n_col 1 N/A lda N/A LatentDirichletAllocation n_topics n_topics learning_offset 5.0 total_samples 20 random_state rng N/A N/A N/A lda partial_fit X_1 N/A N/A assert_raises_regexp ValueError ^The provided data has N/A lda partial_fit X_2 N/A test_invalid_params N/A N/A N/A N/A N/A X N/A N/A np ones N/A 5 10 N/A invalid_models N/A N/A n_topics N/A LatentDirichletAllocation n_topics 0 N/A learning_method N/A LatentDirichletAllocation learning_method unknown N/A total_samples N/A LatentDirichletAllocation total_samples 0 N/A learning_offset N/A LatentDirichletAllocation learning_offset -1 N/A N/A param model invalid_models N/A N/A regex N/A ^Invalid %r parameter param N/A N/A assert_raises_regexp ValueError regex N/A model fit X N/A test_lda_negative_input N/A N/A N/A N/A N/A X N/A N/A N/A np ones N/A 5 10 N/A lda N/A LatentDirichletAllocation N/A regex ^Negative values in data passed N/A N/A assert_raises_regexp ValueError regex N/A lda fit X N/A test_lda_no_component_error 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 randint 4 size N/A 20 10 N/A lda N/A LatentDirichletAllocation N/A regex ^no 'components_' attribute N/A N/A assert_raises_regexp NotFittedError regex N/A lda transform X N/A N/A assert_raises_regexp NotFittedError regex N/A lda perplexity X N/A test_lda_transform_mismatch 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 randint 4 size N/A 20 10 N/A X_2 N/A N/A rng randint 4 size N/A 10 8 N/A n_topics N/A N/A rng randint 3 6 N/A lda N/A LatentDirichletAllocation n_topics n_topics random_state rng N/A N/A N/A lda partial_fit X N/A N/A assert_raises_regexp ValueError ^The provided data has N/A lda partial_fit X_2 N/A test_lda_multi_jobs N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A method N/A online batch N/A N/A rng N/A N/A N/A np random RandomState 0 N/A lda N/A LatentDirichletAllocation n_topics n_topics n_jobs 2 learning_method method evaluate_every 1 random_state rng N/A N/A N/A lda fit X N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A c N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A c argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A if_safe_multiprocessing_with_blas test_lda_partial_fit_multi_jobs N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics n_jobs 2 learning_offset 5.0 total_samples 30 random_state rng N/A i N/A range 2 N/A N/A N/A N/A lda partial_fit X N/A correct_idx_grps N/A N/A 0 1 2 N/A 3 4 5 N/A 6 7 8 N/A c N/A lda components_ N/A N/A top_idx N/A set N/A N/A N/A N/A c argsort N/A -3 N/A -1 N/A N/A assert_true N/A N/A tuple N/A sorted top_idx correct_idx_grps N/A if_safe_multiprocessing_with_blas test_lda_preplexity_mismatch N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A n_topics N/A N/A rng randint 3 6 N/A n_samples N/A N/A rng randint 6 10 N/A X N/A N/A N/A np random randint 4 size N/A n_samples 10 N/A lda N/A LatentDirichletAllocation n_topics n_topics learning_offset 5.0 total_samples 20 random_state rng N/A N/A N/A lda fit X N/A invalid_n_samples N/A N/A rng randint 4 size N/A N/A n_samples 1 n_topics N/A N/A assert_raises_regexp ValueError Number of samples N/A lda perplexity X invalid_n_samples N/A invalid_n_topics N/A N/A rng randint 4 size N/A n_samples N/A n_topics 1 N/A N/A assert_raises_regexp ValueError Number of topics N/A lda perplexity X invalid_n_topics N/A test_lda_perplexity N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A method N/A online batch N/A N/A lda_1 N/A LatentDirichletAllocation n_topics n_topics max_iter 1 learning_method method total_samples 100 random_state 0 N/A lda_2 N/A LatentDirichletAllocation n_topics n_topics max_iter 10 learning_method method total_samples 100 random_state 0 N/A distr_1 N/A N/A lda_1 fit_transform X N/A perp_1 N/A N/A lda_1 perplexity X distr_1 sub_sampling False N/A distr_2 N/A N/A lda_2 fit_transform X N/A perp_2 N/A N/A lda_2 perplexity X distr_2 sub_sampling False N/A N/A assert_greater_equal perp_1 perp_2 N/A perp_1_subsampling N/A N/A lda_1 perplexity X distr_1 sub_sampling True N/A perp_2_subsampling N/A N/A lda_2 perplexity X distr_2 sub_sampling True N/A N/A assert_greater_equal perp_1_subsampling perp_2_subsampling N/A test_lda_score N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A method N/A online batch N/A N/A lda_1 N/A LatentDirichletAllocation n_topics n_topics max_iter 1 learning_method method total_samples 100 random_state 0 N/A lda_2 N/A LatentDirichletAllocation n_topics n_topics max_iter 10 learning_method method total_samples 100 random_state 0 N/A N/A N/A lda_1 fit_transform X N/A score_1 N/A N/A lda_1 score X N/A N/A N/A lda_2 fit_transform X N/A score_2 N/A N/A lda_2 score X N/A N/A assert_greater_equal score_2 score_1 N/A test_perplexity_input_format N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics max_iter 1 learning_method batch total_samples 100 random_state 0 N/A distr N/A N/A lda fit_transform X N/A perp_1 N/A N/A lda perplexity X N/A perp_2 N/A N/A lda perplexity X distr N/A perp_3 N/A N/A lda perplexity N/A N/A X toarray distr N/A N/A assert_almost_equal perp_1 perp_2 N/A N/A assert_almost_equal perp_1 perp_3 N/A test_lda_score_perplexity N/A N/A N/A N/A N/A N/A n_topics X N/A _build_sparse_mtx N/A lda N/A LatentDirichletAllocation n_topics n_topics max_iter 10 random_state 0 N/A distr N/A N/A lda fit_transform X N/A perplexity_1 N/A N/A lda perplexity X distr sub_sampling False N/A score N/A N/A lda score X N/A perplexity_2 N/A N/A np exp N/A -1.0 N/A score N/A N/A np sum N/A X data N/A N/A assert_almost_equal perplexity_1 perplexity_2 N/A test_lda_empty_docs N/A N/A N/A N/A N/A Test LDA on empty document (all-zero rows). N/A Z N/A N/A np zeros N/A 5 4 N/A X N/A Z N/A csr_matrix Z N/A N/A lda N/A N/A N/A LatentDirichletAllocation max_iter 750 fit X N/A N/A assert_almost_equal N/A N/A N/A lda components_ sum axis 0 N/A N/A np ones N/A N/A N/A lda components_ shape N/A 1 N/A test_dirichlet_expectation N/A N/A N/A N/A N/A Test Cython version of Dirichlet expectation calculation. N/A x N/A N/A np logspace -100 10 10000 N/A expectation N/A N/A np empty_like x N/A N/A _dirichlet_expectation_1d x 0 expectation N/A N/A assert_allclose expectation N/A N/A np exp N/A N/A psi x N/A psi N/A N/A np sum x atol 1e-19 N/A x N/A N/A x reshape 100 100 N/A N/A assert_allclose N/A _dirichlet_expectation_2d x N/A N/A psi x N/A psi N/A N/A N/A np sum x axis 1 N/A N/A N/A N/A np newaxis rtol 1e-11 atol 3e-09 N/A