I have network like this, I want to make last layer to return integers (target data is integers)
connection=[
layers.Input(4),
layers.Sigmoid(50),layers.Sigmoid(50),
layers.Sigmoid(1),
],
I have network like this, I want to make last layer to return integers (target data is integers)
connection=[
layers.Input(4),
layers.Sigmoid(50),layers.Sigmoid(50),
layers.Sigmoid(1),
],
You cannot do it during the training, because you will need to round your values and it will completely vanish information for the gradient, but you can make predictions that very close to the integer and when you need to use it you can just convert value to the integer