org.apache.ignite.ml.tree.leaf

## Class MostCommonDecisionTreeLeafBuilder

- java.lang.Object
- - org.apache.ignite.ml.tree.leaf.MostCommonDecisionTreeLeafBuilder

- All Implemented Interfaces:
    DecisionTreeLeafBuilder

      public class MostCommonDecisionTreeLeafBuilder
      extends Object
      implements DecisionTreeLeafBuilder

  Decision tree leaf node builder that chooses most common value as a leaf node value.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MostCommonDecisionTreeLeafBuilder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DecisionTreeLeafNode` | `createLeafNode(Dataset<EmptyContext,DecisionTreeData> dataset, TreeFilter pred)` Creates new leaf node for given dataset and node predicate.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MostCommonDecisionTreeLeafBuilder

          public MostCommonDecisionTreeLeafBuilder()

  - ### Method Detail

    - #### createLeafNode

          public DecisionTreeLeafNode createLeafNode(Dataset<EmptyContext,DecisionTreeData> dataset,
                                                     TreeFilter pred)

      Creates new leaf node for given dataset and node predicate.
      Specified by:
        `createLeafNode` in interface `DecisionTreeLeafBuilder`
      Parameters:
        `dataset` - Dataset.
        `pred` - Node predicate.
      Returns:
        Leaf node.

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021