0
$\begingroup$

I have to write code to implement regression using random forests (by default Weka provides random forests for classification). Is this possible to do?

$\endgroup$
2
  • 1
    $\begingroup$ It is certainly in the realm of possibility. But what is your question? If this is purely about Weka programming, it is off-topic. If you are interested in a particular statistical aspect of RF regression, please update your question accordingly. $\endgroup$
    – chl
    Commented Feb 20, 2013 at 12:57
  • $\begingroup$ This is what random forests are for, no? For regression! So random forests already are a regression algorithm. Or am I wrong? $\endgroup$
    – Tomas
    Commented Nov 6, 2014 at 17:04

2 Answers 2

3
$\begingroup$

It appears that WEKA 3.7's RandomForest implementation supports a numeric class attribute, whereas 3.6 did not.

$\endgroup$
1
$\begingroup$

It is absolutely possible. Both python and R have implementations of random forests for regression. Perhaps your should change tools?

Or you can use rJava to run R from within Java.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.