a9e42a7f1d0ea64be0371a6f7aff5039b5a48f4f,NodeClassifier/iterator.py,BatchIterator,gen_data,#BatchIterator#Any#Any#Any#Any#,60
Before Change
session = sessions[key][session_id]
if mod_type == "rep_swap":
new_key = np.random.choice(key_subset)
new_id = np.random.choice(len(sessions[new_key]))
new_session = sessions[new_key][new_id]
model_outputs = new_session["model outputs"]
else:
model_outputs = session["model outputs"]
After Change
hex_str = "0123456789abcdef"
mod_types = ["label_swap", "packet_swap", "duplicate"]
if self.perturb_types != "all":
mod_types = self.perturb_types
if length <= 1:
mod_types = ["label_swap"]
all_keys = list(self.sessions_by_length[length].keys())
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: BindsNET/bindsnet
Commit Name: 25fbc56b910b394c02f0c2673630f602899ddc56
Time: 2018-05-25
Author: djsaunde@cs.umass.edu
File Name: examples/mnist/conv_mnist.py
Class Name:
Method Name:
Project Name: tensorflow/magenta
Commit Name: 2ffbee556e7f58696352aa98ddca8d6e82b9330d
Time: 2019-01-24
Author: fjord@google.com
File Name: magenta/models/onsets_frames_transcription/data.py
Class Name:
Method Name: _preprocess_data