For a uni project I'm trying to fit a keras sequential model to a few thousand given datapoints with are approximately in the range $y \in [-0.03,0.03]$ and have the domain $x \in (0, 409.6)$.
I'm using the following model definition
Sequential([
Input(shape=(1,)),
feature_normalizer,
layers.Dense(512, activation='relu'),
layers.Dense(512, activation='relu'),
layers.Dense(512, activation='relu'),
layers.Dense(512, activation='relu'),
layers.Dense(512, activation='relu'),
layers.Dense(1, activation="linear")
])
a batch size of 32 and the Adam Optimizer with a learning rate ot 0.0001.
Using this configuration and 10000 epochs some parts of the domain are really poorly fitted: whereas the approximation is better in other areas:
My loss history looks like this
Is there anything I can do to improve the accuracy of my model? Or should I just train it with more epochs. Any tips would by appreciated :)