Closed aviknayakusa closed 4 years ago
@aviknayakusa, In order to make the outputs 3-dim, you can revise the following two points:
return (input_shape[0], input_shape[1], (input_shape[2] * self.k))
in compute_output_shape
,return tf.transpose(top_k, [0, 2, 1])
in call
.And is the 1-length time-series (input_shape=(1, 44)
) intended? The input_shape
must be (timesteps, features)
for time-series.
@aviknayakusa, I'll close the issue for now. Please feel free to open it again at any time if you have additional comments.
I am having an error i cant seem to comprehend how to solve. Basically i am trying to implement a 1Dconv model with KMAX pooling but when i am adding the KMAXpooling layer the model is throwing error
model codel:
Input data shape is x_train shape: (52400, 1, 44) x_test shape: (13101, 1, 44) Training samples: 52400 Test samples: 13101 (52400,) 54758 1 14943 1 33251 -1 43037 1 10054 1 Name: label, dtype: int64
The above is the kMax Pooling code ..