Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testing for multiple classes #11

Open
PSSF23 opened this issue Jan 19, 2021 · 0 comments
Open

Fix testing for multiple classes #11

PSSF23 opened this issue Jan 19, 2021 · 0 comments

Comments

@PSSF23
Copy link

PSSF23 commented Jan 19, 2021

My issue is that I cannot implement testing for a dataset that contains more than two classes, even though I can train the model without such a limitation.

I obtained my LIBSVM data from this website and executed the following command:

./bin/spdt --model-path ./tmp --class-labels 0,1,2,3,4,5,6,7,8,9 --training-data pendigits --test-data pendigits.t

And the error I received is as such:

Exception in thread "main" java.lang.IllegalArgumentException: evaluation not implemented for more than two classes!
	at com.soundcloud.spdt.SPDT.eval(SPDT.scala:614)
	at com.soundcloud.spdt.Application$.main(Application.scala:160)
	at com.soundcloud.spdt.Application.main(Application.scala)

Please let me know if I have made any implementation mistakes. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant