MCPcopy Create free account

hub / github.com/SonyCSLParis/cae-invar / functions

Functions149 in github.com/SonyCSLParis/cae-invar

Method__init__
(self, data_set, M=2)
complex_auto/transform.py:45
Method__len__
(self)
complex_auto/dataloader.py:46
Method__len__
(self)
complex_auto/dataloader.py:97
Method__len__
(self)
complex_auto/dataloader.py:365
Functionchroma_to_tonnetz
Transforms chromagram to Tonnetz (Harte, Sandler, 2006).
complex_auto/motives_extractor/utils.py:132
Functionclassify
(mags, mags_test, classes, classes_test, type='knn')
convert.py:101
Functioncompute_audio_chromagram
Computes the PCP.
complex_auto/motives_extractor/utils.py:531
Functioncompute_key_inv_ssm
Computes the self similarity matrix that is key invariant from chromagram X.
complex_auto/motives_extractor/utils.py:97
Functioncompute_segment_score
Computes the score for a given segment. The score is computed by taking a look at the trace of the block of the ssm.
complex_auto/motives_extractor/utils.py:403
Functioncompute_ssm
Compute a Self Similarity Matrix, normalized from 0 to 1.
complex_auto/motives_extractor/utils.py:84
Functioncsv_to_chromagram
Obtains a chromagram representation from a csv score.
complex_auto/motives_extractor/utils.py:214
Methoddrop_gauss
(self, x)
complex_auto/complex.py:27
Functioneval_mixed_list
(list_in, *types)
complex_auto/config.py:94
Functionevaluate
(loader, fn="pca_trans.png")
convert.py:34
Functionfind_segments
Finds the segment inside the self similarity matrix X.
complex_auto/motives_extractor/utils.py:432
Methodforward
(self, x)
complex_auto/complex.py:30
Functionget_balanced
(data_eval_, nr_nn_)
convert.py:82
Functionget_number_of_staves
Returns the number of staves for the csv formatted score.
complex_auto/motives_extractor/utils.py:198
Functionis_square
Checks whether the block of the ssm defined with start_i, start_j contains "squared" information or not.
complex_auto/motives_extractor/utils.py:258
Functionl2_loss
L2 weight regularization :param weight: weight to regularize :return: loss
complex_auto/regularize.py:27
Functionlee_loss
Lee sparsity and selectivity regularization on hidden activations :param act: hidden unit activations :return: loss
complex_auto/regularize.py:16
Methodload_files
(self, filelist)
complex_auto/dataloader.py:368
Functionmean_filter
Applies a mean filter of size L to the matrix of row observations X.
complex_auto/motives_extractor/utils.py:249
Functionorthogonality
(weights)
complex_auto/regularize.py:35
Methodpca_coeffs
Transformation of an observation vector in the M principal components Parameters ---------- x_vector: array _like
complex_auto/transform.py:104
Functionplot_chroma
Plots a Chromagram example, as it appears on the ISMIR paper. Parameters ---------- C : np.array((N,12)) Chromagram.
complex_auto/motives_extractor/ismir.py:110
Functionplot_colormap
Save a colormap of values titled with title in file filename.
complex_auto/plot.py:121
Functionplot_curve
Save a plot of a function (curve).
complex_auto/plot.py:265
Functionplot_data
Plots input data :param data: a data batch to plot :param epoch: epoch nr :param out_dir: directory where to save the plot
complex_auto/plot.py:80
Functionplot_hist
(values, title, filename)
complex_auto/motives_extractor/extractor.py:294
Functionplot_histograms
Plots some histograms :param model: a C-GAE instance :param batch: the batch to use for computing histograms :param epoch: epoch nr
complex_auto/plot.py:91
Functionplot_kernels
Plots the input weights of the C-GAE :param model: a C-GAE instance :param epoch: epoch nr (int) :param out_dir: directory where to
complex_auto/plot.py:37
Functionplot_mapping
Plots the top most mapping layer given an input batch :param model: a C-GAE instance :param batch: the batch to reconstruct :param e
complex_auto/plot.py:65
Functionplot_matrix
Plots matrix X.
complex_auto/motives_extractor/utils.py:55
Functionplot_recon
Plots the reconstruction of an input batch :param model: a C-GAE instance :param batch: the batch to reconstruct :param epoch: epoch
complex_auto/plot.py:52
Functionplot_score_examples
Plots some examples of the score, as they appear on the ISMIR paper. Parameters ---------- X : np.array((N,N)) Self-similarity ma
complex_auto/motives_extractor/ismir.py:142
Functionplot_segments
Plots the segments on top of half of the self similarity matrix X.
complex_auto/motives_extractor/ismir.py:36
Functionplot_ssm
Plots a self-similarity matrix, as it appears on the ISMIR paper. Parameters ---------- X : np.array((N,N)) Self-similarity matri
complex_auto/motives_extractor/ismir.py:69
Functionprint_patterns
Prints the patterns and the occurrences included in pattterns. Parameters ---------- patterns : list Patterns list with all of it
complex_auto/motives_extractor/extractor.py:80
Functionprocess_piece
(fn_ss_matrix, outdir, tol, domain, ssm_read_pk, read_pk, tonnetz, rho, csv_file=None)
extract_motives.py:54
Functionread_cPickle
Reads the cPickle file and returns its contents. @param file string: Path to the cPickle file. @return x Object: cPickle contents.
complex_auto/motives_extractor/utils.py:61
Functionread_csv
Reads a csv into a numpy array.
complex_auto/motives_extractor/utils.py:458
Functionsave_results
Saves the results into the output file, following the MIREX format.
complex_auto/motives_extractor/utils.py:339
Functionsave_results_raw
Saves the raw results into the output file
complex_auto/motives_extractor/utils.py:355
Functionsonify_patterns
Sonifies the patterns.
complex_auto/motives_extractor/utils.py:555
Functionsplit_patterns
Splits the patterns in case they are included one inside the other.
complex_auto/motives_extractor/utils.py:273
Methodtransp1
Transposes axis 1 (zero-based) of x by [shift] steps. Missing information is padded with zeros. :param x: the array to transp
complex_auto/dataloader.py:284
Functionwrite_cPickle
Write data into a cPickle file. @param file string: Path to the new cPickle file. @param data object: Data to be stored.
complex_auto/motives_extractor/utils.py:73
Functionwrite_config
Write configuration (dict) into .ini file
complex_auto/config.py:78
← previous101–149 of 149, ranked by callers