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

Data Format and Loading Error #9

Open
jmethfe opened this issue Oct 7, 2019 · 1 comment
Open

Data Format and Loading Error #9

jmethfe opened this issue Oct 7, 2019 · 1 comment

Comments

@jmethfe
Copy link

jmethfe commented Oct 7, 2019

Hi,

I am relatively new to using Scala and LIBSVM data. I grabbed the Iris dataset in the LIBSVM format from https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html#iris

My goal is to train the algorithm with this dataset. Then I will simulate some real-time test and train data streams to observe how the tree populates and performs.

I am seeing this error when specifying my initial training dataset. The data file is saved as .dat file.

image

@mweiden
Copy link
Contributor

mweiden commented Oct 8, 2019

The class labels in this dataset are {1,2,3} so you need the --class-labels option:

./bin/spdt --model-path ./tmp --class-labels 1,2,3 --training-data ./iris.scale

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

2 participants