mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang Zhou <>
Subject Re: The function of the parameter complemented in DecisionTreeBuilder
Date Fri, 02 Nov 2012 13:15:58 GMT

I read the code again and now understand how the parameter complemented
works now.

Basically, it only effects how the method public Node build(Random rng,
Data data) works. When complemented is true, the method decides how to
split the node based on the data contained in the full data set, but not in
the parameter data passed to the method. And it also effects the assignment
of labels for leaves.

On Thu, Nov 1, 2012 at 10:16 PM, Anca Leuca <> wrote:

> Hi,
> If I call the method setComplemented(boolean complemented)  with the
> > parameter True, how does this effect the tree builder? Thanks for the
> help!
> >
> The source<
> >
> suggests
> that complemented is true by default so I guess it wouldn't?
> That being said, I don't know what complemented actually does, the code
> might be useful to look at, or maybe someone more knowledgeable than me
> could shed some light on this.
> Anca

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