1e792729ce59d1cd71bb776d74bb3e427b580a4e,pliers/extractors/api/clarifai.py,ClarifaiAPIVideoExtractor,_to_df,#ClarifaiAPIVideoExtractor#Any#,142
Before Change
if frame_num == 0:
est_duration = 0.0
else:
est_duration = data_dict["onset_"] / float(frame_num)
data_dict["duration_"] = min(est_duration,
result.stim.duration - data_dict["onset_"])
data_dict["order_"] = frame_num
rows.append(data_dict)
return pd.DataFrame(rows)
After Change
data.append(self._parse_annotations(frame_res))
onset = frame_res["frame_info"]["time"] / 1000.0
if (i + 1) == len(frames):
end = result.stim.duration
print(end)
else:
end = frames[i+1]["frame_info"]["time"] / 1000.0
onsets.append(onset)
durations.append(end - onset)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tyarkoni/pliers
Commit Name: 1e792729ce59d1cd71bb776d74bb3e427b580a4e
Time: 2018-04-13
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/clarifai.py
Class Name: ClarifaiAPIVideoExtractor
Method Name: _to_df
Project Name: iskandr/fancyimpute
Commit Name: ea80e4bf2033628822e2b0f92e2e373d1b3c147b
Time: 2015-12-31
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/auto_encoder.py
Class Name: AutoEncoder
Method Name: complete
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 15112c4de2360cdccb0130b8629456554bac2461
Time: 2017-11-14
Author: max.lapan@gmail.com
File Name: ch08/train_model.py
Class Name:
Method Name: