Ask Your Question
0

random forest predict function returns -1

asked 2014-01-26 05:23:26 -0600

jossyy gravatar image

Hi,

My feature vector's size is 5. The content is filled with 1,0,-1 values... there are two classes. My train data's size is 243 and 16 of them is belong to fist class.The first class labeled with 1, the other is -1.

The predict function returns -1 always

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-26 06:50:12 -0600

Nghia gravatar image

Your data is heavily imbalance so it puts more weight on the one with more data. Try to re-balance them by either reducing the bigger class, or inflate the smaller class (via duplication).

edit flag offensive delete link more

Comments

ok, thank you very much Nghia...

jossyy gravatar imagejossyy ( 2014-01-26 17:24:35 -0600 )edit

Question Tools

Stats

Asked: 2014-01-26 05:23:26 -0600

Seen: 168 times

Last updated: Jan 26 '14