Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SonyCSLParis/cae-invar
/ functions
Functions
149 in github.com/SonyCSLParis/cae-invar
⨍
Functions
149
◇
Types & classes
5
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
Function
chroma_to_tonnetz
Transforms chromagram to Tonnetz (Harte, Sandler, 2006).
complex_auto/motives_extractor/utils.py:132
Function
classify
(mags, mags_test, classes, classes_test, type='knn')
convert.py:101
Function
compute_audio_chromagram
Computes the PCP.
complex_auto/motives_extractor/utils.py:531
Function
compute_key_inv_ssm
Computes the self similarity matrix that is key invariant from chromagram X.
complex_auto/motives_extractor/utils.py:97
Function
compute_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
Function
compute_ssm
Compute a Self Similarity Matrix, normalized from 0 to 1.
complex_auto/motives_extractor/utils.py:84
Function
csv_to_chromagram
Obtains a chromagram representation from a csv score.
complex_auto/motives_extractor/utils.py:214
Method
drop_gauss
(self, x)
complex_auto/complex.py:27
Function
eval_mixed_list
(list_in, *types)
complex_auto/config.py:94
Function
evaluate
(loader, fn="pca_trans.png")
convert.py:34
Function
find_segments
Finds the segment inside the self similarity matrix X.
complex_auto/motives_extractor/utils.py:432
Method
forward
(self, x)
complex_auto/complex.py:30
Function
get_balanced
(data_eval_, nr_nn_)
convert.py:82
Function
get_number_of_staves
Returns the number of staves for the csv formatted score.
complex_auto/motives_extractor/utils.py:198
Function
is_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
Function
l2_loss
L2 weight regularization :param weight: weight to regularize :return: loss
complex_auto/regularize.py:27
Function
lee_loss
Lee sparsity and selectivity regularization on hidden activations :param act: hidden unit activations :return: loss
complex_auto/regularize.py:16
Method
load_files
(self, filelist)
complex_auto/dataloader.py:368
Function
mean_filter
Applies a mean filter of size L to the matrix of row observations X.
complex_auto/motives_extractor/utils.py:249
Function
orthogonality
(weights)
complex_auto/regularize.py:35
Method
pca_coeffs
Transformation of an observation vector in the M principal components Parameters ---------- x_vector: array _like
complex_auto/transform.py:104
Function
plot_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
Function
plot_colormap
Save a colormap of values titled with title in file filename.
complex_auto/plot.py:121
Function
plot_curve
Save a plot of a function (curve).
complex_auto/plot.py:265
Function
plot_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
Function
plot_hist
(values, title, filename)
complex_auto/motives_extractor/extractor.py:294
Function
plot_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
Function
plot_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
Function
plot_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
Function
plot_matrix
Plots matrix X.
complex_auto/motives_extractor/utils.py:55
Function
plot_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
Function
plot_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
Function
plot_segments
Plots the segments on top of half of the self similarity matrix X.
complex_auto/motives_extractor/ismir.py:36
Function
plot_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
Function
print_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
Function
process_piece
(fn_ss_matrix, outdir, tol, domain, ssm_read_pk, read_pk, tonnetz, rho, csv_file=None)
extract_motives.py:54
Function
read_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
Function
read_csv
Reads a csv into a numpy array.
complex_auto/motives_extractor/utils.py:458
Function
save_results
Saves the results into the output file, following the MIREX format.
complex_auto/motives_extractor/utils.py:339
Function
save_results_raw
Saves the raw results into the output file
complex_auto/motives_extractor/utils.py:355
Function
sonify_patterns
Sonifies the patterns.
complex_auto/motives_extractor/utils.py:555
Function
split_patterns
Splits the patterns in case they are included one inside the other.
complex_auto/motives_extractor/utils.py:273
Method
transp1
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
Function
write_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
Function
write_config
Write configuration (dict) into .ini file
complex_auto/config.py:78
← previous
101–149 of 149, ranked by callers