"<ipython-input-16-86250228f126>:16: FutureWarning: Support for multi-dimensional indexing (e.g. `obj[:, None]`) is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead.\n",
" loss = tf.keras.losses.BinaryCrossentropy()(y[i:i+1, np.newaxis], preds) #Calculate loss.New axis-To match shape of preds\n"
]
}
],
"source":[
"# Generate the adversarial samples using the boundary attack\n",