-
Notifications
You must be signed in to change notification settings - Fork 286
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
Polymorphism with classifiers #44
Comments
In what way are you trying to run the classifiers at the same time? e.g., are you trying to create an ensemble (where all the classifiers are trying to recognize the same gestures, but you are combining multiple classifiers together to improve the accuracy), or are you using different classifiers at the same time to recognize different types of gestures (e.g., a basic classifier to detect that a user's hands are in a specific interaction area - such as in front of their torso - and a more complex classifier to recognize specific gestures that occur in the interaction area)? |
Hello Nick, They are all trying to recognise the same gesture. I am very much at a On 28 January 2016 at 06:15, ngillian-google notifications@github.com
|
Ahh, so if you are trying to run multiple classifiers in parallel for testing purposes, then I would advice setting up a vector of pipelines, with each pipeline holding one of the classifiers. This also gives you the option to add slightly different preprocessing/feature extraction modules or settings for each pipeline if you need it. Then for each pipeline you would call: for(size_t i = 0; i<pipelines.size(); i++){ and for(size_t i = 0; i<pipelines.size(); i++){ for training and predicting. |
Hello Nick,
Since the forum is down, I thought it best to message you here.
I was planning on using several different classifiers at the same time. For this purposed I defined an array of Classifiers and assigned different subtypes to each index. However, when trying to load the stored models I realised that the function called resides in MLBase and not in each of the appropriate ML Classifiers. Upon inspection I noticed that this function is not virtual and it just returns false. I guess it wasn't intended to be used in that way. Would you mind letting me know how I could achieve polymorphism? Could it be that I need to do an array of pipelines? I just want to use the library the way it was intended to be used. Don't want to go against its design principles.
Thanks a lot.
M
The text was updated successfully, but these errors were encountered: