f5746a82b4f1c440639d05be4b0de93a104294c5,pliers/extractors/audio.py,RMSEExtractor,_extract,#RMSEExtractor#Any#,169

Before Change


                                    hop_length=self.hop_length,
                                    center=self.center,
                                    pad_mode=self.pad_mode)[0]
        fl = self.frame_length
        hl = self.hop_length
        fps = float(stim.sampling_rate)
        n_frames = 1 + int((len(stim.data) - fl) / hl)
        n_frames = n_frames + (fl / hl) if self.center else n_frames
        onsets = np.arange(n_frames) * hl / fps
        durations = [hl / fps] * n_frames
        return ExtractorResult(rmse, stim, self,
                               features=["RMSE"],

After Change


                                    hop_length=self.hop_length,
                                    center=self.center,
                                    pad_mode=self.pad_mode)[0]
        n_frames = len(rmse)
        onsets = librosa.frames_to_time(range(n_frames),
                                        sr=stim.sampling_rate,
                                        hop_length=self.hop_length)
        durations = [self.hop_length / float(stim.sampling_rate)] * n_frames
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tyarkoni/pliers
Commit Name: f5746a82b4f1c440639d05be4b0de93a104294c5
Time: 2017-09-07
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/audio.py
Class Name: RMSEExtractor
Method Name: _extract


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: rank_response


Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: recall_at_k