rhf package¶
Submodules¶
rhf.rhf module¶
Main module.
-
class
rhf.rhf.
RHF
(num_trees=100, max_height=5, split_criterion='kurtosis', check_duplicates=True)[source]¶ Bases:
object
Random Histogram Forest. Builds and ensemble of Random Histogram Trees
Parameters: - num_trees (int) – number of trees
- max_height (int) – maximum height of each tree
- split_criterion (str) – split criterion to use - ‘kurtosis’ or ‘random’
- check_duplicates (bool) – check duplicates in each leaf
-
class
rhf.rhf.
RandomHistogramTree
(data=None, max_height=None, split_criterion='kurtosis')[source]¶ Bases:
object
Random Histogram Tree object
Parameters: - max_height (int) – max height of the tree
- split_criterion (bool) – split criterion to use: ‘kurtosis’ or ‘random’
-
build
(node, data)[source]¶ Function which recursively builds the tree
Parameters: - node – current node
- data – data corresponding to current node
-
build_tree
(data)[source]¶ Build tree function: generates the root node and successively builds the tree recursively
Parameters: data – the dataset
-
class
rhf.rhf.
Root
[source]¶ Bases:
rhf.rhf.Node
Node (Root) object
Module contents¶
Top-level package for rhf.