Orange Forum • View topic - Loading Saved Classifier

Loading Saved Classifier

A place to ask questions about methods in Orange and how they are used and other general support.

Loading Saved Classifier

Postby roscoe » Sat Nov 16, 2013 10:10

Hi,

Orange is a great product, but I am stuck, I am using the voting.tab dataset as a example, I want to save a logistic regression classifier and apply the trained model to a test dataset and figure impute a predictor on the new dataset. Any help? http://imgur.com/FQ1Sscf

Image link below...
http://imgur.com/FQ1Sscf

1, Train logistic regression learner
2, Save
3, Load learner and predict new values for new dataset

Cheers
R.

Re: Loading Saved Classifier

Postby Ales » Tue Nov 19, 2013 10:55

I am not really sure where you are stuck. From the screenshot you seem to have succeeded in using the loaded classifier on the new data. Can you please describe more precisely where the problem is.

Re: Loading Saved Classifier

Postby roscoe » Wed Nov 20, 2013 13:48

Thanks Ales, my goal is to look learn from the voting dating save the learner/classifer and run it against a test dataset and save the predicted values for the test dataset, using the model displayed in the image, it predicts democrat for all 435 instances , the loaded learner/classifier combine with the test data isn't working from my observation.

Unsure how to use trained models against test data, can this be done through the visual interface rather than scripting?

R.

Re: Loading Saved Classifier

Postby Ales » Wed Nov 20, 2013 14:43

roscoe wrote:... using the model displayed in the image, it predicts democrat for all 435 instances , the loaded learner/classifier combine with the test data isn't working from my observation.
Check the 'File (1)' widget's "Advanced settings" and make sure the ".. Always create a new attribute" option is not selected (use the "Have no common values with the new (recommended)").

Re: Loading Saved Classifier

Postby roscoe » Thu Nov 21, 2013 7:09

Magic!

Thanks Ales for you time in investigating this issue. :D

R

Re: Loading Saved Classifier

Postby roscoe » Thu Nov 21, 2013 10:24

Update, doing the Titanic machine learning competition on Kaggle, I was able to hit rank 280, with a simple logistic regression model in Orange. Thanks for the help

Before
http://imgur.com/1bRJZu3

After
http://imgur.com/OpEwiRP

R.


Return to Questions & Support



cron