bd1fa163ba2e3a02da40151c9ab5e498878800e9,riot_neuralnet/data.py,,get_raw_training_labels,#,68
Before Change
row = prelabels[key]
numImages = row[0]
increment = list()
for j in range(4):
increment.append((row[2][j] - row[1][j]) / numImages)
rowLabels = list()
After Change
time_series = raw_training_labels[time_series_key]
num_images = time_series[0]
increment = [(time_series[2][emotion_dimension_idx] - time_series[1][emotion_dimension_idx]) / num_images for emotion_dimension_idx in range(4)]
labels[time_series_key] = [[increment[label_idx]*image_idx + (time_series[1][label_idx]) for label_idx in range(4)] for image_idx in range(num_images)]
return labels
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: thoughtworksarts/EmoPy
Commit Name: bd1fa163ba2e3a02da40151c9ab5e498878800e9
Time: 2017-12-19
Author: angelica.perez37@gmail.com
File Name: riot_neuralnet/data.py
Class Name:
Method Name: get_raw_training_labels
Project Name: PetrochukM/PyTorch-NLP
Commit Name: 2a1a6851344172e0134f3c5f4f5c1021975f2812
Time: 2018-03-11
Author: petrochukm@gmail.com
File Name: torchnlp/samplers/bucket_batch_sampler.py
Class Name: BucketBatchSampler
Method Name: __iter__
Project Name: rasbt/mlxtend
Commit Name: 7446d43f2350302a1fb44278378e9072b29aaa80
Time: 2017-09-07
Author: adam-erickson@users.noreply.github.com
File Name: mlxtend/feature_selection/exhaustive_feature_selector.py
Class Name: ExhaustiveFeatureSelector
Method Name: fit