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

setResponseIndex in wiki #12

Closed
chriscamacho opened this issue Mar 3, 2015 · 1 comment
Closed

setResponseIndex in wiki #12

chriscamacho opened this issue Mar 3, 2015 · 1 comment
Labels

Comments

@chriscamacho
Copy link

Mentioned multiple times in "gentle" introduction (wiki) without any explanation...

@haifengl
Copy link
Owner

haifengl commented Mar 3, 2015

In supervised learning, we need a response variable for each sample to train the model. For classification, it is the class label. For regression, it is a real value. If a dataset contains such response variable, the method setResponseIndex is used to indicate which one (by column index, starting with 0).

I will update the tutorial. Thanks!

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

No branches or pull requests

2 participants