9b95e0f07b60b6a144893dcc506dfaf90db61c95,librosa/feature/utils.py,,stack_memory,#,119
Before Change
data = np.pad(data, [(0, 0), padding], **kwargs)
history = np.vstack([np.roll(data, -i * delay, axis=1) for i in range(n_steps)[::-1]])
// Trim to original width
if delay > 0:
history = history[:, :t]
After Change
data = np.atleast_2d(data)
t = data.shape[-1]
if t < 1:
raise ParameterError("Cannot stack memory when input data has "
"no columns. Given data.shape={}".format(data.shape))
kwargs.setdefault("mode", "constant")
if kwargs["mode"] == "constant":
kwargs.setdefault("constant_values", [0])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: librosa/librosa
Commit Name: 9b95e0f07b60b6a144893dcc506dfaf90db61c95
Time: 2020-05-18
Author: bmcfee@users.noreply.github.com
File Name: librosa/feature/utils.py
Class Name:
Method Name: stack_memory
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a89404a84393211c7b370077fafe536a8f44762
Time: 2018-03-02
Author: max.lapan@gmail.com
File Name: ch17/lib/common.py
Class Name:
Method Name: iterate_batches
Project Name: librosa/librosa
Commit Name: 01af2ab25c4d3f40191ce255750a3cd196ea8671
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/segment.py
Class Name:
Method Name: structure_feature