mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey-chih chow <>
Subject tree visualizer
Date Fri, 15 Mar 2013 04:24:33 GMT

I found that there is an issue in the code of of the
Mahout random forest. In the file, there is a method, called
toStringNode(Node, Dataset, String[], Map<String, Field>, int). In this
method, there is a statement:

int index = ArrayUtils.indexOf(values, i);

I don't understand why we need to find this index. I look at the code to
create CategoricalNode, entries of childs[] and values[] should be 1-1
corresponding. Given an index of a child node in childs[], why we need to
use ArrayUtils to find an index to the array values[]?


Ey-Chih Chow

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message