Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/P2333/Max-Mahalanobis-Training
/ functions
Functions
29 in github.com/P2333/Max-Mahalanobis-Training
⨍
Functions
29
◇
Types & classes
1
↓ 9 callers
Function
resnet_layer
2D Convolution-Batch Normalization-Activation stack builder # Arguments inputs (tensor): input tensor from input image or previous layer
utils/model.py:11
↓ 7 callers
Function
resnet_v1
ResNet Version 1 Model builder [a] Stacks of 2 x (3 x 3) Conv2D-BN-ReLU Last ReLU is after the shortcut connection. At the beginning of
utils/model.py:55
↓ 7 callers
Function
resnet_v2
ResNet Version 2 Model builder [b] Stacks of (1 x 1)-(3 x 3)-(1 x 1) BN-ReLU-Conv2D or also known as bottleneck layer First shortcut co
utils/model.py:131
↓ 4 callers
Function
model_eval_targetacc
Compute the accuracy of a TF model on some data :param sess: TF session to use :param x: input placeholder :param y: output placeholder (
utils/utils_model_eval.py:33
↓ 2 callers
Method
get_probs
:param x: A symbolic representation of the network input. :return: A symbolic representation of the probs
utils/keras_wraper_ensemble.py:93
↓ 2 callers
Function
lr_schedule
(epoch)
advtrain.py:124
↓ 2 callers
Function
lr_schedule
(epoch)
train.py:137
↓ 2 callers
Function
return_paras
(model_name)
advtest_iterative_blackbox.py:67
↓ 1 callers
Method
_get_softmax_name
Looks for the name of the softmax layer. :return: Softmax layer name
utils/keras_wraper_ensemble.py:36
↓ 1 callers
Function
ensemble_diversity
(y_true, y_pred, num_model)
utils/utils_model_eval.py:24
↓ 1 callers
Method
fprop
Exposes all the layers of the model returned by get_layer_names. :param x: A symbolic representation of the network input :return: A dict
utils/keras_wraper_ensemble.py:108
↓ 1 callers
Method
get_layer
Expose the hidden features of a model given a layer name. :param x: A symbolic representation of the network input :param layer: The name
utils/keras_wraper_ensemble.py:138
↓ 1 callers
Method
get_layer_names
:return: Names of all the layers kept by Keras
utils/keras_wraper_ensemble.py:101
↓ 1 callers
Function
model_eval_for_SPSA
Compute the accuracy of a TF model on some data :param sess: TF session to use :param x: input placeholder :param y: output placeholder (
utils/utils_model_eval.py:187
↓ 1 callers
Function
model_eval_for_SPSA_targetacc
Compute the accuracy of a TF model on some data :param sess: TF session to use :param x: input placeholder :param y: output placeholder (
utils/utils_model_eval.py:111
Function
MMLDA_layer
(x, means=mean_logits, num_class=num_class, use_ball=FLAGS.use_ball)
advtrain.py:111
Function
MMLDA_layer
(x, means=mean_logits, num_class=num_class, use_ball=FLAGS.use_ball)
train.py:125
Function
MMLDA_layer
(x, means=mean_logits, num_class=num_class, use_ball=FLAGS.use_ball)
advtest_others.py:115
Function
MMLDA_layer
(x, means=mean_logits, num_class=num_class, use_ball=FLAGS.use_ball)
advtest_iterative.py:118
Function
MMLDA_layer
(x, means=mean_logits, num_class=num_class, use_ball=FLAGS.use_ball)
advtest_simple_transform.py:116
Function
MMLDA_layer_1
(x, means=mean_logits_1, num_class=num_class, use_ball=FLAGS.use_ball_1)
advtest_iterative_blackbox.py:166
Function
MMLDA_layer_2
(x, means=mean_logits_2, num_class=num_class, use_ball=FLAGS.use_ball_2)
advtest_iterative_blackbox.py:180
Method
__init__
Create a wrapper for a Keras model :param model: A Keras model
utils/keras_wraper_ensemble.py:22
Method
_get_logits_name
Looks for the name of the layer producing the logits. :return: name of layer producing the logits
utils/keras_wraper_ensemble.py:48
Function
adv_train_loss
(_y_true, _y_pred)
advtrain.py:225
Function
dot_loss
(y_true, y_pred)
advtrain.py:107
Function
dot_loss
(y_true, y_pred)
train.py:121
Function
get_ensemble_diversity_values
Compute the accuracy of a TF model on some data :param sess: TF session to use :param x: input placeholder :param y: output placeholder (
utils/utils_model_eval.py:261
Method
get_logits
:param x: A symbolic representation of the network input. :return: A symbolic representation of the logits
utils/keras_wraper_ensemble.py:73