cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Announcement | Looking to expand your Alteryx skillset?! Check out the latest set of interactive lessons in Alteryx Academy: Creating Analytic Apps

Random Forest model output - MSE available?

Highlighted

Hello all, 

 

I am trying to extract data from the model output of various predictive tools, but mainly Random Forest. 

After learning a bit of R, I can extract the IncNodePurity using the 'importance' call like so:

 

model.data <- read.Alteryx("#1")
the_obj <- unserializeObject(as.character(model.data$Object[1]))

the_summary <- summary(the_obj)
the_importance <- importance(the_obj)

write.Alteryx(as.data.frame(the_summary), 1, TRUE)
write.Alteryx(as.data.frame(the_importance), 2, TRUE)

Importance gives the Node Purity but MSE is more accurate and I would prefer to output this instead. Only, I can't find a reliable way to call %IncMSE from the R tool. Does anyone know how to extract this, and more generally is there a place with comprehensive documentation of these? The 'Tool Mastery' pages are not detailed enough!

 

As a side note, It seems bizarre that the tools would output PNG of the data in the Reports but have a not have a formatted, tabular output as well. It would certainly save me some time. Is this in the pipeline?

Labels