03f85204de7ec445e886080f595307641481df22,model/utils.py,,sample_permuted_segments,#Any#Any#,38
Before Change
for _ in range(number_samples):
segments_array = []
permutation = np.random.permutation(len(segments))
for i in range(len(permutation)):
segments_array.append(segments[permutation[i]])
sampled_index_sequences.append(np.concatenate(segments_array))
return sampled_index_sequences
After Change
for _ in range(number_samples):
segments_array = []
permutation = np.random.permutation(len(segments))
for permutation_item in permutation:
segments_array.append(segments[permutation_item])
sampled_index_sequences.append(np.concatenate(segments_array))
return sampled_index_sequences
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: google/uis-rnn
Commit Name: 03f85204de7ec445e886080f595307641481df22
Time: 2018-12-25
Author: quanw@google.com
File Name: model/utils.py
Class Name:
Method Name: sample_permuted_segments
Project Name: chainer/chainercv
Commit Name: f6f0c153fe1f0dacd8ba30ae0dd31a389b66f43f
Time: 2017-05-27
Author: yuyuniitani@gmail.com
File Name: chainercv/evaluations/eval_semantic_segmentation.py
Class Name:
Method Name: _to_cpu
Project Name: markovmodel/PyEMMA
Commit Name: 6ad85e6a2142e8b7c831c2c637f4b0b5bb99a75a
Time: 2018-02-05
Author: m.scherer@fu-berlin.de
File Name: pyemma/util/types.py
Class Name:
Method Name: ensure_traj_list