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

load the csv #53

Closed
cutdir opened this issue Dec 29, 2015 · 3 comments
Closed

load the csv #53

cutdir opened this issue Dec 29, 2015 · 3 comments

Comments

@cutdir
Copy link

cutdir commented Dec 29, 2015

hello,i want to know how to load the csv files.

@haifengl
Copy link
Owner

You can use smile.data.parser.DelimitedTextParser

parser = new DelimitedTextParser();
parser.setDelimiter(",")

There are several other parameters to control the data input format. Please check Javadoc (http://haifengl.github.io/smile/doc/index.html) to make sure you use the right settings for your data. Thanks!

@cutdir
Copy link
Author

cutdir commented Dec 30, 2015

Thanks, I have solved the problem of load csv file,and now I run the GAFeatureSelectionTest sample code, returns 0 and 1. What does this mean?Is 0 for abandon it while 1 means use it?

@haifengl
Copy link
Owner

Yes, it means if the feature is selected. Because it is GA, we print out multiple solutions (and their fitness).

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

No branches or pull requests

2 participants