I am trying to follow one of the machine learning lessons. I have copied the code and downloaded R.
When I run the TestOOS function I get the error message below. The code runs and says deep nn has been trained. Then it bugs out with the error message shown below. Has anyone else come across this problem? The data I'm using was created by zorro.
Error: `data` and `reference` should be factors with the same levels.
stop("`data` and `reference` should be factors with the same levels.",
call. = FALSE)
confusionMatrix(Y.pr, Y.ob) at DeepSignal.r#49
Thanks for any help