forum.alglib.net
http://forum.alglib.net/

Decision forest in Python
http://forum.alglib.net/viewtopic.php?f=2&t=619
Page 1 of 1

Author:  zygmunt [ Sun Sep 30, 2012 6:57 pm ]
Post subject:  Decision forest in Python

Hi,

I'm trying to get predictions from decision forest in Python using the attached script. The task is regression. I'm not sure if I'm using alglib correctly, because all of predictions are [0.0], even though avgerror and rmserror on test set are both < 0.1.

Specifically, what is x in dfprocessi - one data point, meaning a single row of attributes?

Code:
p = xalglib.dfprocessi( df, x )


Also, what should y be in dfprocess?

Code:
p = xalglib.dfprocess( df, x, y )


Attachments:
df.py.txt [881 Bytes]
Downloaded 396 times

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/