Classification table reports result of one class only
Classification table reports result of one class only
I've fitted a model on the training data and used it on test data for prediction. It has predicted only one class as:
11 "1"
11.1 "1"
12 "1"
15 "1"
9 "1"
9.1 "1"
14 "1"
20 "1"
20.1 "1"
4 "1"
But the classification table displays the result of only one class as:
class.pre.Ae.test.cp
testy.s.w 1
0 5
1 5
It should be:
class.pre.Ae.test.cp
testy.s.w 1 0
0 5 0
1 5 0
How can i do it?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.