Description Usage Arguments Examples
Partitions the space of entities into blocks using a k-d tree. Each node of the tree is associated with a splitting rule that divides the input space into two parts, based on the value of one of the attributes. The tree is fitted using the observed records, and the splits are chosen to yield a balanced tree. The depth of the tree and the attributes used for splitting at each level are user-specified parameters.
1 | KDTreePartitioner(numLevels, attributes)
|
numLevels |
The depth/number of levels of the tree. The partitions are
the leaves of the tree, hence the number of partitions is given by
|
attributes |
The attributes used for splitting at each level of the
tree are taken by cycling through this vector. For example, if
|
1 2 | # Specify a partitioner for RLdata10000
partitioner <- KDTreePartitioner(numLevels = 2, attributes = c("fname_c1", "by"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.