MCPcopy Index your code

hub / github.com/ashafahi/inceptionv3-transferLearn-poison / functions

Functions20 in github.com/ashafahi/inceptionv3-transferLearn-poison

↓ 4 callersFunctionencode_one_hot
(nclasses,y)
make_graph_for_warm_and_cold.py:82
↓ 4 callersFunctionencode_one_hot
(nclasses,y)
util_one_shot_kill_attack.py:435
↓ 2 callersFunctionclean_data
this method takes the data input images and removes those that do not have a 3rd dimension to prevent issues with inception and returns the
util_one_shot_kill_attack.py:46
↓ 2 callersFunctioncreate_graph
Creates a graph from saved GraphDef file and returns a saver.
util_one_shot_kill_attack.py:74
↓ 2 callersFunctionget_feat_reps
Returns the feature representation of some images by looking at the penultimate layer of inception-v3 Parameters ---------- X : ndarr
util_one_shot_kill_attack.py:87
↓ 2 callersFunctionload_images_from_directory
Returns an numpy array of the images in a folder directory Parameters ---------- Specie : string just the name of the class -
util_one_shot_kill_attack.py:24
↓ 2 callersFunctiontrain_last_layer_of_inception
This function does training for the last layer of inception-v3. It either performs a cold start in which it starts from a pre-saved graph or
util_one_shot_kill_attack.py:443
↓ 1 callersFunctionadam_one_step
(sess,grad_op,m,v,t,currentImage,featRepTarget,tarFeatRepPL,inputCastImgTensor,learning_rate,beta_1=0.9, beta_
util_one_shot_kill_attack.py:233
↓ 1 callersFunctionadd_evaluation_step
Inserts the operations we need to evaluate the accuracy of our results. Args: graph: Container for the existing model's Graph. Returns:
make_graph_for_warm_and_cold.py:66
↓ 1 callersFunctionadd_final_training_ops
Adds a new softmax and fully-connected layer for training. We need to retrain the top layer to identify our new classes, so this function adds
make_graph_for_warm_and_cold.py:42
↓ 1 callersFunctionclosest_to_target_from_class
Returns an index within the allTestFeatReps matrix for which is the closes to the target in feature spacee and belongs to the base class Par
util_one_shot_kill_attack.py:399
↓ 1 callersFunctioncreate_graph
Creates a graph from saved GraphDef file and returns a saver.
make_graph_for_warm_and_cold.py:30
↓ 1 callersFunctiondo_backward
helper function doing the backward step in the FWD-BCKWD splitting algorithm
util_one_shot_kill_attack.py:249
↓ 1 callersFunctiondo_forward
helper function doing the forward step in the FWD-BCKWD splitting algorithm
util_one_shot_kill_attack.py:243
↓ 1 callersFunctiondo_optimization
Returns the poison image and the difference between the poison and target in feature space. Parameters ---------- targetImg : ndarray
util_one_shot_kill_attack.py:259
↓ 1 callersFunctiondo_train
(sess,saver,X_input, Y_input, X_validation, Y_validation)
make_graph_for_warm_and_cold.py:85
↓ 1 callersFunctionid_duplicates_of_training_from_test
Returns the ids for the duplicates of training in test Parameters ---------- X_test : ndarray the feature represenatons of th
util_one_shot_kill_attack.py:128
↓ 1 callersFunctioniterate_mini_batches
(X_input,Y_input,batch_size)
make_graph_for_warm_and_cold.py:77
↓ 1 callersFunctioniterate_mini_batches
(X_input,Y_input,batch_size)
util_one_shot_kill_attack.py:438
↓ 1 callersFunctionload_bottleNeckTensor_data
Returns the train-test splits of images and their feature representations. Parameters ---------- directory : string, optional
util_one_shot_kill_attack.py:159