Skip to content

Fix testing for multiple classes #11

Open
@PSSF23

Description

@PSSF23

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions