b8fe52f9320760236c097153c40708d8994a31c0,tutorials/mnist_blackbox.py,,substitute_model,#Any#Any#Any#,76
Before Change
// Define a fully connected model (it"s different than the black-box)
layers = [Flatten(input_shape=input_shape),
Dense(200),
Activation("relu") ,
Dropout(0.5),
Dense(200),
Activation("relu"),
After Change
ReLU(),
Dropout(0.5),
Linear(200),
ReLU() ,
Dropout(0.5),
Linear(nb_classes),
Softmax()]
return MLP(layers, input_shape)
def train_sub(sess, x, y, bbox_preds, X_sub, Y_sub, nb_classes,
nb_epochs_s, batch_size, learning_rate, data_aug, lmbda):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: tensorflow/cleverhans
Commit Name: b8fe52f9320760236c097153c40708d8994a31c0
Time: 2017-08-15
Author: nicholas@carlini.com
File Name: tutorials/mnist_blackbox.py
Class Name:
Method Name: substitute_model
Project Name: keras-team/autokeras
Commit Name: f4503bb3a3be014b452f54d8e2d187bb6419f627
Time: 2018-08-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/layers.py
Class Name:
Method Name: to_real_layer