ValueError: The `padding` argument must be a list/tuple or one of "valid", "same" (or "causal", only for `Conv1D). Received: casual

while testing my uncompiled model I am getting this error.

just before this cell, it is mentioned in case you get error use return_sequences=True (which I already used)

why am I still getting this error? can anyone explain this

thank you
DP


ValueError Traceback (most recent call last)
in
2
3 # Create an instance of the model
----> 4 uncompiled_model = create_uncompiled_model()
5
6 # Get one batch of the training set(X = input, y = label)

in create_uncompiled_model()
4
5 model = tf.keras.models.Sequential([
----> 6 tf.keras.layers.Conv1D(filters=32, kernel_size=3,
7 strides=1, activation=‘relu’,
8 padding=‘casual’, input_shape=[None, 1]),

/opt/conda/lib/python3.8/site-packages/keras/layers/convolutional.py in init(self, filters, kernel_size, strides, padding, data_format, dilation_rate, groups, activation, use_bias, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer, activity_regularizer, kernel_constraint, bias_constraint, **kwargs)
507 bias_constraint=None,
508 **kwargs):
→ 509 super(Conv1D, self).init(
510 rank=1,
511 filters=filters,

/opt/conda/lib/python3.8/site-packages/keras/layers/convolutional.py in init(self, rank, filters, kernel_size, strides, padding, data_format, dilation_rate, groups, activation, use_bias, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer, activity_regularizer, kernel_constraint, bias_constraint, trainable, name, conv_op, **kwargs)
141 self.strides = conv_utils.normalize_tuple(
142 strides, rank, ‘strides’, allow_zero=True)
→ 143 self.padding = conv_utils.normalize_padding(padding)
144 self.data_format = conv_utils.normalize_data_format(data_format)
145 self.dilation_rate = conv_utils.normalize_tuple(

/opt/conda/lib/python3.8/site-packages/keras/utils/conv_utils.py in normalize_padding(value)
219 padding = value.lower()
220 if padding not in {‘valid’, ‘same’, ‘causal’}:
→ 221 raise ValueError('The padding argument must be a list/tuple or one of ’
222 ‘“valid”, “same” (or “causal”, only for `Conv1D). ’
223 f’Received: {padding}’)

ValueError: The padding argument must be a list/tuple or one of “valid”, “same” (or “causal”, only for `Conv1D). Received: casual

ok padding error mistake. why do I always get the solution after I post the question :grin:

Explaining the issue to a 3rd party often engages a different part of your brain, which leads to greater insight.

Yes I totally agree @TMosh but this happened 4 times with me, so I was wondering am I being impatient. coz the solution was explained in the error clearly and I Just couldn’t find like foolish. It is just the frustration on my part sometimes affecting me.