'What should I do if I want my output will be between 0-2 in CNN (more than 2 class)?

model.add(Dense(units=4, activation="relu")) model.add(Dense(units=3, activation="sigmoid"))func.

adam = Adam(learning_rate=0.01) model.compile(optimizer=adam, loss ='categorical_crossentropy', metrics=['accuracy']) #some part of code from Modelling



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source