You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@madlib.apache.org by "Frank McQuillan (JIRA)" <ji...@apache.org> on 2016/04/09 01:43:25 UTC
[jira] [Resolved] (MADLIB-928) error in Random Forest
[ https://issues.apache.org/jira/browse/MADLIB-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank McQuillan resolved MADLIB-928.
------------------------------------
Resolution: Fixed
> error in Random Forest
> -----------------------
>
> Key: MADLIB-928
> URL: https://issues.apache.org/jira/browse/MADLIB-928
> Project: Apache MADlib
> Issue Type: Bug
> Components: Module: Random Forest
> Reporter: Tetsuo Kobayashi
> Assignee: Orhan Kislal
> Priority: Minor
> Fix For: v1.9.1
>
>
> I am currently having an error with the MADlib Random Forest function in MADlib 1.8.0. Below is the code I tried.
> SELECT madlib.forest_train('data_random_forest', -- input table name
> 'rf_output', -- output table name
> 'id', -- id column
> 'duration', -- dependent variable
> '*', -- list of features
> 'start_time, end_time, date_only, loc_code, amedas_code', -- exclude columns
> 'linkid' -- grouping column
> ,10::integer -- # of trees
> ,2::integer, -- # of random features
> TRUE::boolean, -- importance
> 1, -- # of permutations
> 10, -- max_tree_depth
> 8, -- min_split
> 3, -- min_bucket
> 10 -- number of splits per continuous variable
> );
> I got an error which tells me something is wrong with the feature "holiday_flg) which is a dummy variable. When I excluded "holiday_flg," the error message tells me that the "KeyError: 'sun_flg' which is another dummy variable. I got another dummy variable in "KeyError:" when I excluded "sun_flg." I can tell one of the dummy variables in the model is picked up in the error message when I exclude one.
> I was told by Rahul Iyer that this is most probably because at least 1 group has only 1 level for (some) categorical variables. This can happen and I saw some groups have identical value for all records.
> I am using MADlib 1.8.0 on GPDB 4.3.6.1. The OS is CentOS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)