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

"Class Value" for classifier? How to assign id to data set element #24

Open
johnpaulashenfelter opened this issue Feb 7, 2014 · 2 comments

Comments

@johnpaulashenfelter
Copy link

Support request -- sorry!

I'm using the classifier on a data set pulled from a database. Let's say it looks like this (details don't really matter)

labels = [quiz1_points, quiz2_points, quiz3_points, quiz4_points]
data = [
[10,3,0,22], # this is user_id = 15
[5,1,5,16], # this is user_id 55
etc..
]

The classifier works great to sort the users into, say 4 groups.

Is there any way to get the user_ids for each group without looping through and using eval([10,3,0,22]) to find that its in group 1?

Is that what a "class value" is for? Data sets have the last element as the "class value"..

@hendricius
Copy link

Same question - did you figure out how to do this?

@hendricius
Copy link

I found the class_value also but couldn't find in the source where it was being used in the dataset. It seems to be added by default if the data_labels are empty.

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

No branches or pull requests

2 participants