I try to use a CNN for a regression task.
My feature data has shape (6097, 30, 32, 9):
- 6097 records
- 30 timesteps
- 32 histogram bins
- 9 channels (image bands)
the target data has shape
(6097, 1)
- 6097 records with crop yield (float) data.
When I create the last Dense layer of my CNN regression model, I am not sure which settings to use. The output dimension of the last convolution layer is (None,2,2,512). I've added a BatchNorm and Flatten layer (not sure if this makes sense)
What is the correct number of units and the activation function? My guess is units=1 and activation function = "None"
Keras:
model.add(Dense(units=1,
activation=None
))