Hello,
I have two data sets (matrices) that contains 1x Input and 5x Outputs.
x_data is a matrix [1,1:200]
y_data is a matrix [200,1:5]
Bellow the model i used (did't work due to error):
model = keras_model_sequential() %>%
layer_dense(units = 64, activation = "relu", input_shape = ncol(x_data)) %>%
layer_dense(units = 64, activation = "relu") %>%
layer_dense(units = nrow(y_data), activation = "softmax")
model
compile(model, loss = "categorical_crossentropy", optimizer = optimizer_rmsprop(), metrics = "accuracy")
fitmodel = fit(model, x_data, y_data, epochs = 20, batch_size = 10, validation_split = 0.2)
Can you please explain what i am doing wrong?
Thank you in advance