我想手動編碼一維卷積,因爲我正在使用內核進行時間序列分類,並且我決定製作着名的維基百科卷積圖像,如下所示。 這是我的腳本。我正在使用standard formula for convolution for a digital signal。 import numpy as np
import matplotlib.pyplot as plt
import scipy.ndimage
plt
我試圖做Tensorflow如下: I need this 爲此,我已經做了迄今爲止以下: def new_weights(shape):
return tf.Variable(tf.truncated_normal(shape, stddev=0.05))
# From here down is another function
shape = [3, 3, 1, 8,]
H
我有形狀391 x 400的圖像。我試圖使用here所述的自動編碼器。 具體來說,我用下面的代碼: from keras.layers import Input, Dense, Conv2D, MaxPooling2D, UpSampling2D
from keras.models import Model
from keras import backend as K
input_img