RE: Error trying to run a RandomForest [SEC=UNOFFICIAL]

36 views
Skip to first unread message

Nolan, Anthony

unread,
Feb 14, 2016, 3:27:56 PM2/14/16
to rattle...@googlegroups.com

Good Morning, I get this too.

 

As I understand it, there is a variable in your dataset, where its class is not a factor, and it needs to be.

 

If the variable and do something like   dataset$variablename <- as.factor(ldataset$variablename)

 

That should fix it up, as I understand it. But I am not the best r coder, so I might be wrong also.

 

Hope it helps

 

Regards

tony

 

From: rattle...@googlegroups.com [mailto:rattle...@googlegroups.com] On Behalf Of Tom Eagle
Sent: Friday, 12 February 2016 12:32 PM
To: rattle-users
Subject: Error trying to run a RandomForest

 

Can anyone help me?  I am having the following error message when I try to run a randomForest on a small data set.  I am getting the following error message

 

An error occured in the call to 'randomForest::randomForest'. The error message was:

 

Error in na.roughfix.data.frame(structure(list(`as.factor(mod7_5class)` = structure(c(3L,  : 

  na.roughfix only works for numeric or factor

 

 

If this is a bug please contact sup...@togaware.com.

 

Please supply the output of rattleInfo() and the steps required to replicate the problem. 

 

Rattle 4.1.0

 

My target variable has 5 values and it is indicated as categoric on the data tab.  Tree works fine!

 

Thanks for any assistance!

 

Tom

--
You received this message because you are subscribed to the Google Groups "rattle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users...@googlegroups.com.
To post to this group, send email to rattle...@googlegroups.com.
Visit this group at https://groups.google.com/group/rattle-users.
For more options, visit https://groups.google.com/d/optout.

**********************************************************************
IMPORTANT
    The information transmitted is for the use of the intended
recipient only and may contain confidential and/or legally
privileged material. Any review, re-transmission, disclosure,
dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other
than the intended recipient is prohibited and may result in
severe penalties. If you have received this e-mail in error
please notify the Privacy Hotline of the Australian Taxation
Office, telephone 1300 661 542 and delete all copies of this
transmission together with any attachments.
**********************************************************************

Reply all
Reply to author
Forward
0 new messages