a9e42a7f1d0ea64be0371a6f7aff5039b5a48f4f,NodeClassifier/iterator.py,BatchIterator,gen_data,#BatchIterator#Any#Any#Any#Any#,60
Before Change
model_outputs = session["model outputs"]
rep_choice = np.random.choice([0,1])
representation = list(model_outputs.values())[rep_choice]
R[i] = representation
packets = session["packets"]
for j, packet in enumerate(packets):
After Change
model_outputs = session["model outputs"]
classification = model_outputs["classification"]
classification = sorted(classification, key=lambda x: x[0])
class_array = [p for c,p in classification]
if mod_type == "label_swap":
np.random.shuffle(class_array)
R[i] = np.asarray(class_array)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: CyberReboot/NetworkML
Commit Name: a9e42a7f1d0ea64be0371a6f7aff5039b5a48f4f
Time: 2017-11-15
Author: CStephenson970@gmail.com
File Name: NodeClassifier/iterator.py
Class Name: BatchIterator
Method Name: gen_data
Project Name: deeptools/HiCExplorer
Commit Name: 09a7f7a4deb2d05942e3ce122ddbe84205d984d6
Time: 2018-06-18
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicPlotViewpoint.py
Class Name:
Method Name: main
Project Name: reinforceio/tensorforce
Commit Name: 4ad2ca6fd75a9011527cba10186da96a86da0ddf
Time: 2018-07-27
Author: alexkuhnle@t-online.de
File Name: tensorforce/models/memory_model.py
Class Name: MemoryModel
Method Name: tf_loss