MCPcopy Create free account

hub / github.com/derekgreene/topic-stability / functions

Functions111 in github.com/derekgreene/topic-stability

↓ 9 callersMethodkeys
( self )
unsupervised/validation.py:96
↓ 5 callersMethodsimilarity
( self, gold_ranking, test_ranking )
unsupervised/rankings.py:14
↓ 4 callersMethodcalculate
Implementation of the Hungarian (Munkres) Algorithm. input_matrix is a List of Lists. input_matrix is assumed to be a cost m
unsupervised/hungarian.py:91
↓ 4 callersMethodget_results
Get results after calculation.
unsupervised/hungarian.py:83
↓ 3 callersMethodget_total_potential
Returns expected value after calculation.
unsupervised/hungarian.py:87
↓ 2 callersMethod__find_row_without_choice
Find a row without a choice in it for the column indexed. If a row does not exist then return None.
unsupervised/hungarian.py:405
↓ 2 callersMethod__mark_new_columns_with_zeros_in_marked_rows
Mark all columns not already marked which have zeros in marked rows.
unsupervised/hungarian.py:364
↓ 2 callersMethod__mark_rows_and_columns
Check if column or row is marked. If not marked then mark it.
unsupervised/hungarian.py:223
↓ 2 callersMethodadd
( self, rankings, partition )
unsupervised/ensemble.py:89
↓ 2 callersMethodadd
( self, experiment_key, scores )
unsupervised/validation.py:113
↓ 2 callersMethodaggregate_scores
( self )
unsupervised/validation.py:118
↓ 2 callersMethodapply
( self, X, k = 2 )
unsupervised/skm.py:22
↓ 2 callersMethodapply
Apply NMF to the specified document-term matrix X.
unsupervised/nmf.py:18
↓ 2 callersMethodapply
Apply topic modeling to the specific document-term matrix, using K topics.
unsupervised/lda.py:26
↓ 2 callersMethodcreate_table
( self, include_mean = False, precision = 2 )
unsupervised/validation.py:135
↓ 2 callersMethodgenerate_partition
( self )
unsupervised/skm.py:29
↓ 2 callersMethodgenerate_partition
( self )
unsupervised/nmf.py:42
↓ 2 callersMethodgenerate_partition
( self )
unsupervised/lda.py:67
↓ 2 callersMethodhas_class_info
( self )
unsupervised/validation.py:78
↓ 2 callersFunctionkmeans
centres, Xtocentre, distances = kmeans( X, initial centres ... ) in: X N x dim may be sparse centres k x dim: initial centres, e
unsupervised/skm.py:78
↓ 2 callersMethodmake_cost_matrix
Converts a profit matrix into a cost matrix. Expects NumPy objects as input.
unsupervised/hungarian.py:163
↓ 2 callersMethodrank_terms
Return the top ranked terms for the specified topic, using the centroids from the last run.
unsupervised/skm.py:34
↓ 2 callersMethodrank_terms
Return the top ranked terms for the specified topic, generated during the last NMF run.
unsupervised/nmf.py:29
↓ 2 callersMethodrank_terms
Return the top ranked terms for the specified topic, generated during the last LDA run.
unsupervised/lda.py:57
↓ 2 callersMethodrelevance
Computes a score for the specified rank, which is indexed from 1
unsupervised/ensemble.py:31
↓ 1 callersMethod__calculate
Calculates minimum number of lines necessary to cover all zeros in a matrix. Algorithm based on: http://weber.ucsd.edu/~vcrawfor/hung
unsupervised/hungarian.py:296
↓ 1 callersMethod__choice_in_all_marked_columns
Return Boolean True if there is a choice in all marked columns. Returns boolean False otherwise.
unsupervised/hungarian.py:389
↓ 1 callersMethod__find_best_choice_row_and_new_column
Find a row index to use for the choice so that the column that needs to be changed is optimal. Return a random row and column if unab
unsupervised/hungarian.py:415
↓ 1 callersMethod__find_marked_column_without_choice
Find a marked column that does not have a choice.
unsupervised/hungarian.py:396
↓ 1 callersMethod__find_matches
Returns rows and columns with matches in them.
unsupervised/hungarian.py:198
↓ 1 callersMethod__import_data
Run the Mallet pre-processing step.
unsupervised/lda.py:94
↓ 1 callersMethod__init__
( self, max_iters = 100 )
unsupervised/skm.py:17
↓ 1 callersMethod__init__
input_matrix is a List of Lists. input_matrix is assumed to be a cost matrix unless is_profit_matrix is True.
unsupervised/hungarian.py:53
↓ 1 callersMethod__mark_new_rows_with_choices_in_marked_columns
Mark all rows not already marked which have choices in marked columns.
unsupervised/hungarian.py:377
↓ 1 callersMethod__parse_document_weights
( self, num_docs, mallet_docs_path )
unsupervised/lda.py:163
↓ 1 callersMethod__parse_topics
( self, mallet_terms_path )
unsupervised/lda.py:147
↓ 1 callersMethod__rerank_terms
Implements the term re-weighting method proposed by Blei and Lafferty.
unsupervised/lda.py:183
↓ 1 callersMethod__run_mallet
Run the Mallet LDA step.
unsupervised/lda.py:104
↓ 1 callersMethod__set_results
Set results during calculation.
unsupervised/hungarian.py:249
↓ 1 callersMethod__write_documents
Write documents to temporary file, for parsing by Mallet.
unsupervised/lda.py:72
↓ 1 callersMethod_adjust_matrix_by_min_uncovered_num
Subtract m from every uncovered number and add m to every element covered with two lines.
unsupervised/hungarian.py:174
↓ 1 callersMethodadd
( self, ranking )
unsupervised/ensemble.py:48
↓ 1 callersMethodbuild_matrix
Construct the similarity matrix between the pairs of rankings in two different ranking sets.
unsupervised/rankings.py:62
↓ 1 callersMethodbuild_ranking
( self, top = -1, include_weights = False )
unsupervised/ensemble.py:53
↓ 1 callersFunctioncdist_sparse
-> |X| x |Y| cdist array, any cdist metric X or Y may be sparse -- best csr
unsupervised/skm.py:124
↓ 1 callersMethodevaluate
( self, test_rankings, top_values = [10] )
unsupervised/validation.py:25
↓ 1 callersMethodevaluate
( self, partition, clustered_ids )
unsupervised/validation.py:81
↓ 1 callersFunctionfind_documents
Find all files in the specified directory and its subdirectories, and store them as strings in a list.
parse-text.py:9
↓ 1 callersMethodget_covered_columns
Return list of covered columns.
unsupervised/hungarian.py:292
↓ 1 callersMethodget_covered_rows
Return list of covered rows.
unsupervised/hungarian.py:288
↓ 1 callersMethodhungarian_matching
Solve the Hungarian matching problem to find the best matches between columns and rows based on values in the specified similarity matrix.
unsupervised/rankings.py:75
↓ 1 callersFunctionmain
()
reference-nmf.py:10
↓ 1 callersFunctionmain
()
parse-text.py:44
↓ 1 callersFunctionmain
()
reference-skm.py:11
↓ 1 callersFunctionmain
()
validate-topics.py:9
↓ 1 callersFunctionmain
()
generate-nmf.py:10
↓ 1 callersFunctionmain
()
topic-stability.py:11
↓ 1 callersFunctionmain
()
reference-lda.py:10
↓ 1 callersFunctionmain
()
display-topics.py:12
↓ 1 callersFunctionmain
()
generate-skm.py:12
↓ 1 callersFunctionmain
()
generate-lda.py:10
↓ 1 callersFunctionmain
()
convert-pkl2mtx.py:20
↓ 1 callersFunctionread_text
Read and normalize body text from the specified document file.
parse-text.py:24
↓ 1 callersMethodselect_arbitrary_match
Selects row column combination with minimum number of zeros in it.
unsupervised/hungarian.py:233
↓ 1 callersMethodsimilarity
Calculate the overall agreement between two different ranking sets. This is given by the mean similarity values for all matched pairs.
unsupervised/rankings.py:52
Method__init__
( self, max_iters = 100 )
unsupervised/skm.py:50
Method__init__
( self, max_iters = 100, init_strategy = "random" )
unsupervised/nmf.py:12
Method__init__
( self, max_iters = 100, init_strategy = "random", update = "euclidean" )
unsupervised/nmf.py:51
Method__init__
( self, mallet_path, top = 100, seed = 1000, max_iters = 1000, alpha = 10.0, beta = 0.01, rerank_terms = False
unsupervised/lda.py:11
Method__init__
( self, base = 2)
unsupervised/ensemble.py:28
Method__init__
( self, rel_measure )
unsupervised/ensemble.py:43
Method__init__
( self, rel_measure = ReciprocalRankRelevance() )
unsupervised/ensemble.py:81
Method__init__
( self, X, terms, class_partition )
unsupervised/validation.py:14
Method__init__
( self, metric = rankings.AverageJaccard() )
unsupervised/validation.py:42
Method__init__
( self, classes, doc_ids )
unsupervised/validation.py:67
Method__init__
( self )
unsupervised/validation.py:109
Method__init__
( self, metric = AverageJaccard() )
unsupervised/rankings.py:49
Method__init__
Input a matrix and save it as a boolean matrix to designate zero locations. Run calculation procedure to generate results.
unsupervised/hungarian.py:266
Method__str__
( self )
unsupervised/ensemble.py:22
Method__str__
( self )
unsupervised/ensemble.py:35
Method__str__
( self )
unsupervised/rankings.py:25
Methodapply
( self, X, k = 2 )
unsupervised/skm.py:53
Methodapply
Apply NMF to the specified document-term matrix X.
unsupervised/nmf.py:59
Functionbuild_centroids
Build a set of K centroids based on the specified partition memberships.
unsupervised/util.py:8
Methodbuild_rankings
( self, top = 10, include_weights = False )
unsupervised/ensemble.py:107
Functioncalc_relevance_scores
Utility function to compute a sequence of relevance scores using the specified function.
unsupervised/rankings.py:96
Functionclustermap_to_partition
Convert a dictionary representing a clustering into a partition.
unsupervised/util.py:23
Functioncustom_tokenizer
( s )
text/util.py:12
Methodevaluate
( self, test_rankings, top_values = [10] )
unsupervised/validation.py:45
Functionformat_term_rankings
Format a list of multiple term rankings using PrettyTable.
unsupervised/rankings.py:128
Functionformat_term_rankings_long
Format a list of multiple term rankings using lists.
unsupervised/rankings.py:156
Methodgenerate_partition
( self )
unsupervised/nmf.py:97
Methodget_score
( self, term )
unsupervised/ensemble.py:70
Functionload_corpus
Load a pre-processed scikit-learn corpus and associated metadata using Joblib.
text/util.py:51
Functionload_nmf_factors
Load a NMF factorization result using Joblib.
unsupervised/util.py:67
Functionload_partition
Load a disjoint partition (clustering) result using Joblib.
unsupervised/util.py:81
Functionload_stopwords
Load stopwords from a file into a set.
text/util.py:31
Functionload_term_rankings
Load a list of multiple term rankings using Joblib.
unsupervised/util.py:54
Functionpreprocess
Preprocess a list containing text documents stored as strings.
text/util.py:5
Methodrank_terms
Return the top ranked terms for the specified topic, generated during the last NMF run.
unsupervised/nmf.py:83
next →1–100 of 111, ranked by callers