I am new to R.
I am trying to do one hot coding and am using to_categorical
function and I am getting the error:
"Installation of Python not found, Python bindings not loaded"
I have already installed keras package and have loaded it as well. Even tried removing it and installing again.
This is my code:
trainy <- c(0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2)
trainLabels <- to_categorical(trainy)
I also tried the following code and got the same error:
model <- keras_model_sequential()
Please let me know if you require any other details!
Thanks in advance.