MCPcopy Create free account

hub / github.com/babylonhealth/corrsim / functions

Functions62 in github.com/babylonhealth/corrsim

↓ 5 callersFunctionget_similarity_by_name
(sim_name)
similarity/__init__.py:45
↓ 5 callersMethodloadFile
(self, fpath)
senteval/sts.py:34
↓ 4 callersMethodeval
(self, name)
senteval/engine.py:45
↓ 4 callersFunctionksg_factory
:param k: number of nearest neighbours :param pool: optional pooling function (e.g. np.mean or np.max) :return: KSG similarity with given
similarity/mi.py:20
↓ 3 callersMethodcompute_conf_intervals
(params)
senteval/sts.py:173
↓ 3 callersFunctionhsic
Computes Hilbert-Schmidt independence criterion (HSIC) between word embedding matrices X and Y :param X: word embedding matri
similarity/cka.py:61
↓ 2 callersFunction_apsynp
APSynP similarity measure (Santus et al., 2018) applied to sentences represented as averaged word vectors :param x: list of word embeddin
similarity/correlation.py:59
↓ 2 callersFunctionbatcher
(params, batch)
evaluation/corrset_eval.py:50
↓ 2 callersFunctioncka_factory
Builds a Centered Kernel Alignment (CKA) similarity function with the specified kernel :param kernel: kernel function for CKA :return
similarity/cka.py:54
↓ 1 callersFunctionapply_sim
(sim_func, vex, row)
evaluation/wordsim_eval.py:106
↓ 1 callersFunctioncalculate_shapiro
(corrs, df, vex, exclude=())
evaluation/wordsim_eval.py:130
↓ 1 callersFunctioncalculate_similarities
(df, vex, sims, exclude=())
evaluation/wordsim_eval.py:118
↓ 1 callersFunctioncentering_matrix
Returns a centering matrix of dimension d :param d: dimension of the matrix :return: centering matrix of dimension d
similarity/cka.py:45
↓ 1 callersFunctioncompute_ci
(scores, exclude=())
evaluation/wordsim_eval.py:144
↓ 1 callersFunctioncorrelation
(df, sims, exclude=())
evaluation/wordsim_eval.py:160
↓ 1 callersFunctioncosine
(x, y)
similarity/baseline.py:19
↓ 1 callersFunctioncosine
(u, v)
senteval/utils.py:46
↓ 1 callersMethoddo_prepare
(self, params, prepare)
senteval/sts.py:59
↓ 1 callersFunctionget_winner
(corrs, scores)
evaluation/wordsim_eval.py:221
↓ 1 callersFunctionget_wordvec
(path_to_vec, word2id)
evaluation/wordsim_eval.py:74
↓ 1 callersFunctionlinear_kernel
Computes a linear kernel for X :param X: word embedding matrix X with shape (k x D) :return: linear kernel for X
similarity/cka.py:20
↓ 1 callersFunctionload_dataset
(data_dir)
evaluation/wordsim_eval.py:94
↓ 1 callersFunctionload_file
(fp)
evaluation/wordsim_eval.py:88
↓ 1 callersFunctionmax_idxs
(lst)
evaluation/wordsim_eval.py:190
↓ 1 callersFunctionprepare
(params, samples)
evaluation/corrset_eval.py:40
↓ 1 callersFunctionprint_frac_normal
(word_vectors)
evaluation/utils.py:94
↓ 1 callersMethodrun
(self, params, batcher)
senteval/sts.py:74
↓ 1 callersFunctionto_ci_table
(corrs, scores, sims, exclude=())
evaluation/wordsim_eval.py:268
↓ 1 callersFunctionto_table
(corrs, sims, exclude=())
evaluation/wordsim_eval.py:237
↓ 1 callersFunctionvector_correlations
(df, word_set, vex_fp, sims, exclude=())
evaluation/wordsim_eval.py:181
Method__init__
(self, taskpath, seed=1111)
senteval/sts.py:178
Method__init__
(self, taskpath, seed=1111)
senteval/sts.py:188
Method__init__
(self, taskpath, seed=1111)
senteval/sts.py:196
Method__init__
(self, taskpath, seed=1111)
senteval/sts.py:205
Method__init__
(self, taskpath, seed=1111)
senteval/sts.py:214
Method__init__
(self, params, batcher, prepare=None)
senteval/engine.py:31
Functionapsyn
(x, y)
similarity/correlation.py:79
Functionapsynp
(x, y)
similarity/correlation.py:83
Functionapsynp
(u, v)
evaluation/wordsim_eval.py:49
Functionavg_cosine
Cosine similarity between two avg. word vectors. :param x: list of word embeddings for the first sentence :param y: list of word embeddin
similarity/baseline.py:23
Functionbatcher
(params, batch)
evaluation/infosim_eval.py:50
Functionbatcher
(params, batch)
evaluation/conf_intervals.py:50
Functionbatcher
(params, batch)
evaluation/corrsim_eval.py:50
Functioncka
Computes Centered Kernel Alignment (CKA) between word embedding matrices X and Y :param X: word embedding matrix X with shape
similarity/cka.py:76
Functioncosine
(u, v)
evaluation/wordsim_eval.py:58
Functioncreate_dictionary
(sentences, threshold=0)
evaluation/utils.py:40
Functioncreate_dictionary
(sentences)
senteval/utils.py:24
Functiondcorr
Computes Distance Correlation (dCorr) between word embedding matrices X and Y :param x: X: word embedding matrix X with shape (k x D)
similarity/cka.py:89
Functiongaussian_kernel
Computes a Gaussian kernel for X :param X: word embedding matrix X with shape (k x D) :param sigma: standard deviation of the kernel
similarity/cka.py:29
Functionget_word_vec_path_by_name
(word_vec_name)
evaluation/utils.py:34
Functionget_wordvec
Loads words and word vectors from a text file :param path_to_vec: path to word vector file in word2vec format :param word2id: words to lo
evaluation/utils.py:67
Functionkendall
Kendall correlation coefficient between two sentences represented as averaged word vectors :param x: list of word embeddings for the firs
similarity/correlation.py:46
Functionksg
Kraskov–Stogbauer–Grassberger (KSG) estimator of mutual information between two sentences represented as word embedding matrices x an
similarity/mi.py:27
Functionmax_ci_idxs
(corrs, scores)
evaluation/wordsim_eval.py:202
Functionmax_spearman
Spearman correlation coefficient between two sentences represented as max-pooled word vectors :param x: list of word embeddings for the f
similarity/correlation.py:87
Functionpearson
Pearson correlation coefficient between two sentences represented as averaged word vectors :param x: list of word embeddings for the firs
similarity/correlation.py:20
Functionprepare
(params, samples)
evaluation/infosim_eval.py:40
Functionprepare
(params, samples)
evaluation/conf_intervals.py:40
Functionprepare
(params, samples)
evaluation/corrsim_eval.py:40
Functionspearman
Spearman correlation coefficient between two sentences represented as averaged word vectors :param x: list of word embeddings for the fir
similarity/correlation.py:33
Functionstatistic
(data)
evaluation/wordsim_eval.py:40
Methodstatistic
(data)
senteval/sts.py:124