原代码链接: https://towardsdatascience.com/machine-learning-for-anomaly-detection-and-condition-monitoring-d4614e7de770
encoded_imgs = autoencoder.encoder(x_test).numpy() decoded_imgs = autoencoder.decoder(encoded_imgs).numpy() n =10plt.figure(figsize=(20,4))foriinrange(n):# display originalax = plt.subplot(2, n, i +1) plt.imshow(x_test[i]) plt.title("original") plt.gray() ax.get_xaxis(...