Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/derekgreene/topic-stability
/ types & classes
Types & classes
20 in github.com/derekgreene/topic-stability
⨍
Functions
111
◇
Types & classes
20
↓ 4 callers
Class
HungarianError
unsupervised/hungarian.py:19
↓ 3 callers
Class
Hungarian
Implementation of the Hungarian (Munkres) Algorithm using np. Usage: hungarian = Hungarian(cost_matrix) hungarian.calculate(
unsupervised/hungarian.py:29
↓ 2 callers
Class
SphericalKMeans
Basic implementation of Spherical K-Means (SKM), backed by a generalized K-Means implementation that uses cosine distances. Term rankings are
unsupervised/skm.py:11
↓ 1 callers
Class
AverageJaccard
A top-weighted version of Jaccard, which takes into account rank positions. This is based on Fagin's Average Overlap Intersection Metric.
unsupervised/rankings.py:28
↓ 1 callers
Class
CoverZeros
Use minimum number of lines to cover all zeros in the matrix. Algorithm based on: http://weber.ucsd.edu/~vcrawfor/hungar.pdf
unsupervised/hungarian.py:260
↓ 1 callers
Class
EnsembleRanking
unsupervised/ensemble.py:42
↓ 1 callers
Class
ReciprocalRankRelevance
Relevance function with inverse rank-weighted scores.
unsupervised/ensemble.py:15
↓ 1 callers
Class
SpectralSphericalKMeans
unsupervised/skm.py:49
Class
DiversityValidator
Validation measure that calculates the average pairwise dissimilarity between all unique pairs of term rankings in a given ranking set. The defa
unsupervised/validation.py:36
Class
JaccardBinary
Simple binary Jaccard-based ranking comparison, which does not take into account rank positions.
unsupervised/rankings.py:10
Class
LogRelevance
DCG-based rank relevance function, with inverse log-weighted scores.
unsupervised/ensemble.py:25
Class
MalletLDA
Wrapper class for Mallet. Requires that a binary version of Mallet 2.0 is available locally.
unsupervised/lda.py:7
Class
NimfaNMF
Wrapper class backed by the Nimfa package NMF implementation.
unsupervised/nmf.py:47
Class
PartitionValidator
A validator that evaluates topic (cluster) memberships based on an external set of ground truth classes. Note: we assume both the topic and class m
unsupervised/validation.py:62
Class
RankingSetAgreement
Calculates the agreement between pairs of ranking sets, using a specified measure of similarity between rankings.
unsupervised/rankings.py:44
Class
RelevanceFunction
Generic rank relevance function, with unit weights for all ranks.
unsupervised/ensemble.py:8
Class
ScoreCollection
A utility class for keeping track of experiment scores produced by multiple validation measures applied to different topic models.
unsupervised/validation.py:104
Class
SklNMF
Wrapper class backed by the scikit-learn package NMF implementation.
unsupervised/nmf.py:8
Class
TermValidator
Validation measure, which compares the agreement between term rankings derived from the centroids produced using a 'ground truth' partition, with a
unsupervised/validation.py:8
Class
TopicEnsemble
unsupervised/ensemble.py:80