Hi guys,
I’ve been stuck with this problem for a few days.
No matter I changed different optimizer, and model architecture, I still cannot slove this problem.
The optimizer I have tried:
optimizer = tf.keras.optimizers.Adam()
optimizer = tf.keras.optimizers.SGD(lr=1e-8, momentum=0.9)
optimizer = tf.keras.optimizers.SGD(lr=1e-5, momentum=0.9)
Please don’t post code in public. Sharing stacktrace is okay.
Try using MaxPooling1D layer after Conv1D to reduce the number of parameters and improve performance.
The kernel_size is usually set to 2 or 3. Setting to a much bigger value is likely to affect learning.
Unfortunately, there’s not much of a shortcut for designing NNs.
Look at the ungraded labls for the week for further hints.
If you’ve taken deep learning specialization, that should help with error analysis as well.