Hi,

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.
4.
stop("`data` and `reference` should be factors with the same levels.",
call. = FALSE)
3.
confusionMatrix.default(Y.pr, Y.ob)
2.
confusionMatrix(Y.pr, Y.ob) at DeepSignal.r#49
1.
TestOOS()

Thanks for any help