Keras model to fit polynomial
问题 I generated some data from a 4th degree polynomial and wanted to create a regression model in Keras to fit this polynomial. The problem is that predictions after fitting seem to be basically linear. Since this is my first time working with neural nets I assume I made a very trivial and stupid mistake. Here is my code: model = Sequential() model.add(Dense(units=200, input_dim=1)) model.add(Activation('relu')) model.add(Dense(units=45)) model.add(Activation('relu')) model.add(Dense(units=1))