MCPcopy Create free account

hub / github.com/anuragranj/coma / functions

Functions151 in github.com/anuragranj/coma

Methodb2relu
Bias and ReLU. One bias per vertex per filter.
lib/models.py:1243
Functionbaseline
Train various classifiers to get a baseline.
lib/utils.py:223
Functionchebyshev
Return T_k X where T_k are the Chebyshev polynomials of order up to K. Complexity is O(KMN).
lib/graph.py:241
Methodchebyshev
(x)
lib/models.py:560
Methodchebyshev2
Filtering with Chebyshev interpolation Implementation: numpy. Data: x of size N x M x F N: number of sig
lib/models.py:915
Methodchebyshev5
(self, x, L, Fout, K)
lib/models.py:944
Methodchebyshev5
(self, x, L, Fout, K)
lib/models.py:1205
Methodclean_text
(self, num='substitute')
lib/utils.py:14
Functioncoarsen
Coarsen a graph, represented by its adjacency matrix A, at multiple levels.
lib/coarsening.py:5
Methodconcat
(xt, x)
lib/models.py:692
Methodconcat
(x, x_)
lib/models.py:958
Methoddata_info
(self, show_classes=False)
lib/utils.py:51
Functiondistance_lshforest
Return an approximation of the k-nearest cosine distances.
lib/graph.py:44
Functiondistance_scipy_spatial
Compute exact pairwise distances.
lib/graph.py:22
Functiondistance_sklearn_metrics
Compute exact pairwise distances.
lib/graph.py:33
Methodembed
Embed the vocabulary using pre-trained vectors.
lib/utils.py:127
Methodfilter
(xt, k)
lib/models.py:643
FunctiongenerateIdentityDataset
(data_path, save_path)
facemesh.py:260
Functiongenerate_transform_matrices
Generates len(factors) meshes, each of them is scaled by factors[i] and computes the transformations between them. Returns: M:
lib/mesh_sampling.py:219
Methodget_var
(self, name)
lib/models.py:149
Functiongrid
Return the embedding of a grid graph.
lib/graph.py:10
Functiongrid_search
Explore the hyper-parameter space with an exhaustive grid search.
lib/utils.py:250
Methodkeep_top_words
Keep in the vocaluary the M words who appear most often.
lib/utils.py:109
Functionlanczos
Given the graph Laplacian and a data matrix, return a data matrix which can be multiplied by the filter coefficients to filter X using the La
lib/graph.py:184
Methodlanczos
(x)
lib/models.py:525
Functionlaplacian
Return the Laplacian of the weigth matrix.
lib/graph.py:117
Functionlmax
Upper-bound on the spectrum.
lib/graph.py:139
Methodloss
Adds to the inference model the layers required to generate loss.
lib/models.py:1176
FunctionmeshPlay
(folder,every=100,wait=0.05)
facemesh.py:116
Methodmpool1
Max pooling of size p. Should be a power of 2.
lib/models.py:988
Methodnormalize
Normalize data to unit length.
lib/utils.py:121
Functionperm_tensor
(x, indices)
lib/coarsening.py:255
Functionplot_spectrum
Plot the spectrum of a list of multi-scale Laplacians L.
lib/graph.py:169
MethodpoolwT
(self, x, L)
lib/models.py:1249
Methodremove_classes
(self, keep)
lib/utils.py:173
Methodremove_short_documents
Remove a document if it contains less than nwords.
lib/utils.py:94
Functionreplace_random_edges
Replace randomly chosen edges by random edges.
lib/graph.py:86
Functionrescale_L
Rescale the Laplacian eigenvalues in [-1,1].
lib/graph.py:232
Methodsample
(self, BATCH_SIZE=64)
facemesh.py:82
Methodsave_meshes
(self, filename, meshes)
facemesh.py:91
Methodselect_documents
(self)
lib/utils.py:205
Methodshow
ids: list of ids to play
facemesh.py:69
Methodshow
(s, fontsize=None)
lib/utils.py:298
Methodshow_classes_per_doc
Number of classes per document.
lib/utils.py:199
Methodshow_doc_per_class
Number of documents per class.
lib/utils.py:189
Methodshow_document
(self, i)
lib/utils.py:60
Methodspline
(self, x, L, Fout, K)
lib/models.py:899
Methodtest
(s, model, name, params, train_data, train_labels, val_data, val_labels, test_data, test_labels)
lib/utils.py:286
Functionunperm_tensor
(xnew, indices, M)
lib/coarsening.py:262
Methodupool1
Upsampling x
lib/models.py:998
Methodvectorize
(self, **params)
lib/utils.py:44
← previous101–151 of 151, ranked by callers