Hello everybody,

does anyone know an approach to perform model selection in Weka through cross validation for regression problems? afaik, the cross validation is implemented in Weka just to assess the performance of the classifier. I guess that calling Weka API from Java might solve the problem, but is there a GUI-based approach?

Thanks in advance, Lucian

asked May 02 '11 at 02:07

Lucian%20Sasu's gravatar image

Lucian Sasu
513172634


One Answer:

Hi,

I suppose you could use Stacking in the following way:

weka.classifiers.meta.Stacking -t wisconsin.arff -M weka.classifiers.functions.SimpleLinearRegression -B weka.classifiers.functions.LinearRegression -B weka.classifiers.functions.SMOreg

the specific meta classifier here would select exactly one of all the base classifiers. And if you need to optimise the base classifiers, you could wrap these into meta.CVParameterSelection or GridSearch as well.

hth, Bernhard

answered May 03 '11 at 05:08

Bernhard%20Pfahringer's gravatar image

Bernhard Pfahringer
311

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.