a5ca44a569833e73e67c4ec07ac077b0a088ca2f,hmmlearn/utils.py,,iter_from_X_lengths,#,36
Before Change
yield 0, len(X)
else:
n_sequences = len(lengths)
end = np.cumsum(lengths)
start = end - lengths
for i in range(n_sequences):
yield start[i], end[i]
After Change
yield 0, len(X)
elif lengths:
n_samples = X.shape[0]
end = np.cumsum(lengths).astype(np.int32)
start = end - lengths
if end[-1] > n_samples:
raise ValueError("More than {0:d} samples in lengths array {1!s}"
.format(n_samples, lengths))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: hmmlearn/hmmlearn
Commit Name: a5ca44a569833e73e67c4ec07ac077b0a088ca2f
Time: 2015-06-09
Author: superbobry@gmail.com
File Name: hmmlearn/utils.py
Class Name:
Method Name: iter_from_X_lengths
Project Name: google-research/google-research
Commit Name: b2989af3b396e30a1d38259e9c523a5b2a9175b2
Time: 2021-01-12
Author: barron@google.com
File Name: jaxnerf/nerf/model_utils.py
Class Name:
Method Name: piecewise_constant_pdf
Project Name: SenticNet/conv-emotion
Commit Name: 1606a75405ca47d569acdd2a64a052abcf3f2bd1
Time: 2019-12-22
Author: deepanwayedu@gmail.com
File Name: DialogueGCN/model.py
Class Name:
Method Name: attentive_node_features