SYMBOL INDEX (130 symbols across 12 files) FILE: audio_dataset.py class AudioDataset (line 10) | class AudioDataset(Dataset): method __init__ (line 11) | def __init__(self, config, root_dir='/data/music/chord_recognition', d... method __len__ (line 75) | def __len__(self): method __getitem__ (line 78) | def __getitem__(self, idx): method get_paths (line 87) | def get_paths(self, kfold=4): method get_paths_voca (line 141) | def get_paths_voca(self, kfold=4): function _collate_fn (line 195) | def _collate_fn(batch): class AudioDataLoader (line 226) | class AudioDataLoader(DataLoader): method __init__ (line 227) | def __init__(self, *args, **kwargs): FILE: baseline_models.py class CNN (line 10) | class CNN(nn.Module): method __init__ (line 11) | def __init__(self,config): method cnn_layers (line 31) | def cnn_layers(self, in_channels, out_channels, kernel_size, stride=1,... method forward (line 39) | def forward(self, x, labels): class Crf (line 79) | class Crf(nn.Module): method __init__ (line 80) | def __init__(self, num_chords, timestep): method forward (line 86) | def forward(self, probs, labels): class CRNN (line 93) | class CRNN(nn.Module): method __init__ (line 94) | def __init__(self,config): method forward (line 110) | def forward(self, x, labels): FILE: btc_model.py class self_attention_block (line 7) | class self_attention_block(nn.Module): method __init__ (line 8) | def __init__(self, hidden_size, total_key_depth, total_value_depth, fi... method forward (line 19) | def forward(self, inputs): class bi_directional_self_attention (line 47) | class bi_directional_self_attention(nn.Module): method __init__ (line 48) | def __init__(self, hidden_size, total_key_depth, total_value_depth, fi... method forward (line 83) | def forward(self, inputs): class bi_directional_self_attention_layers (line 100) | class bi_directional_self_attention_layers(nn.Module): method __init__ (line 101) | def __init__(self, embedding_size, hidden_size, num_layers, num_heads,... method forward (line 121) | def forward(self, inputs): class BTC_model (line 138) | class BTC_model(nn.Module): method __init__ (line 139) | def __init__(self, config): method forward (line 161) | def forward(self, x, labels): FILE: crf_model.py class CRF (line 8) | class CRF(nn.Module): method __init__ (line 14) | def __init__(self, num_tags): method forward (line 24) | def forward(self, feats): method loss (line 31) | def loss(self, feats, tags): method _sequence_score (line 61) | def _sequence_score(self, feats, tags): method _partition_function (line 89) | def _partition_function(self, feats): method _viterbi (line 113) | def _viterbi(self, feats): method _log_sum_exp (line 147) | def _log_sum_exp(self, logits, dim): FILE: utils/chords.py function idx_to_chord (line 52) | def idx_to_chord(idx): class Chords (line 63) | class Chords: method __init__ (line 65) | def __init__(self): method chords (line 95) | def chords(self, labels): method label_error_modify (line 124) | def label_error_modify(self, label): method chord (line 134) | def chord(self, label): method modify (line 199) | def modify(self, base_pitch, modifier): method pitch (line 228) | def pitch(self, pitch_str): method interval (line 247) | def interval(self, interval_str): method interval_list (line 269) | def interval_list(self, intervals_str, given_pitch_classes=None): method chord_intervals (line 301) | def chord_intervals(self, quality_str): method load_chords (line 328) | def load_chords(self, filename): method reduce_to_triads (line 377) | def reduce_to_triads(self, chords, keep_bass=False): method convert_to_id (line 442) | def convert_to_id(self, root, is_major): method get_converted_chord (line 451) | def get_converted_chord(self, filename): method assign_chord_id (line 461) | def assign_chord_id(self, entry): method convert_to_id_voca (line 468) | def convert_to_id_voca(self, root, quality): method get_converted_chord_voca (line 503) | def get_converted_chord_voca(self, filename): method lab_file_error_modify (line 522) | def lab_file_error_modify(self, ref_labels): FILE: utils/hparams.py class HParams (line 5) | class HParams(object): method __init__ (line 7) | def __init__(self, **kwargs): method add (line 10) | def add(self, **kwargs): method update (line 14) | def update(self, **kwargs): method save (line 18) | def save(self, path): method __repr__ (line 23) | def __repr__(self): method load (line 27) | def load(cls, path): FILE: utils/logger.py function _log_prefix (line 11) | def _log_prefix(): function logging_verbosity (line 51) | def logging_verbosity(verbosity=0): function debug (line 55) | def debug(msg, *args, **kwargs): function info (line 59) | def info(msg, *args, **kwargs): function warn (line 63) | def warn(msg, *args, **kwargs): function error (line 67) | def error(msg, *args, **kwargs): function fatal (line 71) | def fatal(msg, *args, **kwargs): FILE: utils/mir_eval_modules.py function idx2voca_chord (line 13) | def idx2voca_chord(): function audio_file_to_features (line 29) | def audio_file_to_features(audio_file, config): function get_audio_paths (line 49) | def get_audio_paths(audio_dir): class metrics (line 53) | class metrics(): method __init__ (line 54) | def __init__(self): method score (line 62) | def score(self, metric, gt_path, est_path): method root_score (line 81) | def root_score(self, gt_path, est_path): method thirds_score (line 95) | def thirds_score(self, gt_path, est_path): method triads_score (line 109) | def triads_score(self, gt_path, est_path): method sevenths_score (line 123) | def sevenths_score(self, gt_path, est_path): method tetrads_score (line 137) | def tetrads_score(self, gt_path, est_path): method majmin_score (line 151) | def majmin_score(self, gt_path, est_path): method mirex_score (line 165) | def mirex_score(self, gt_path, est_path): function lab_file_error_modify (line 179) | def lab_file_error_modify(ref_labels): function root_majmin_score_calculation (line 200) | def root_majmin_score_calculation(valid_dataset, config, mean, std, devi... function root_majmin_score_calculation_crf (line 271) | def root_majmin_score_calculation_crf(valid_dataset, config, mean, std, ... function large_voca_score_calculation (line 342) | def large_voca_score_calculation(valid_dataset, config, mean, std, devic... function large_voca_score_calculation_crf (line 413) | def large_voca_score_calculation_crf(valid_dataset, config, mean, std, d... FILE: utils/preprocess.py class FeatureTypes (line 10) | class FeatureTypes(Enum): class Preprocess (line 13) | class Preprocess(): method __init__ (line 14) | def __init__(self, config, feature_to_use, dataset_names, root_dir): method find_mp3_path (line 40) | def find_mp3_path(self, dirpath, word): method find_mp3_path_robbiewilliams (line 51) | def find_mp3_path_robbiewilliams(self, dirpath, word): method get_all_files (line 62) | def get_all_files(self): method uspop_pre (line 116) | def uspop_pre(self, text): method song_pre (line 123) | def song_pre(self, text): method config_to_folder (line 131) | def config_to_folder(self): method generate_labels_features_new (line 142) | def generate_labels_features_new(self, all_list): method generate_labels_features_voca (line 305) | def generate_labels_features_voca(self, all_list): FILE: utils/pytorch_utils.py function adjusting_learning_rate (line 13) | def adjusting_learning_rate(optimizer, factor=.5, min_lr=0.00001): function load_model (line 22) | def load_model(asset_path, model, optimizer, restore_epoch=0): FILE: utils/tf_logger.py class TF_Logger (line 11) | class TF_Logger(object): method __init__ (line 12) | def __init__(self, log_dir): method scalar_summary (line 16) | def scalar_summary(self, tag, value, step): method image_summary (line 21) | def image_summary(self, tag, images, step): method histo_summary (line 44) | def histo_summary(self, tag, values, step, bins=1000): FILE: utils/transformer_modules.py function _gen_bias_mask (line 10) | def _gen_bias_mask(max_length): function _gen_timing_signal (line 18) | def _gen_timing_signal(length, channels, min_timescale=1.0, max_timescal... class LayerNorm (line 40) | class LayerNorm(nn.Module): method __init__ (line 43) | def __init__(self, features, eps=1e-6): method forward (line 49) | def forward(self, x): class OutputLayer (line 54) | class OutputLayer(nn.Module): method __init__ (line 59) | def __init__(self, hidden_size, output_size, probs_out=False): method loss (line 67) | def loss(self, hidden, labels): class SoftmaxOutputLayer (line 70) | class SoftmaxOutputLayer(OutputLayer): method forward (line 74) | def forward(self, hidden): method loss (line 86) | def loss(self, hidden, labels): class MultiHeadAttention (line 91) | class MultiHeadAttention(nn.Module): method __init__ (line 97) | def __init__(self, input_depth, total_key_depth, total_value_depth, ou... method _split_heads (line 133) | def _split_heads(self, x): method _merge_heads (line 146) | def _merge_heads(self, x): method forward (line 159) | def forward(self, queries, keys, values): class Conv (line 203) | class Conv(nn.Module): method __init__ (line 209) | def __init__(self, input_size, output_size, kernel_size, pad_type): method forward (line 223) | def forward(self, inputs): class PositionwiseFeedForward (line 230) | class PositionwiseFeedForward(nn.Module): method __init__ (line 235) | def __init__(self, input_depth, filter_size, output_depth, layer_confi... method forward (line 266) | def forward(self, inputs):