dist: Distance matrix from unsupervised tree ensemble

Description Usage Arguments Details Value Examples

View source: R/dist.R

Description

Compute 'dist' object from unsupervised tree ensemble

Usage

1
2
dist(dataset, method = "synthetic", predictMethod = "terminalNodes",
  ...)

Arguments

dataset

A dataframe

method

(string) Method to build the tree ensemble. These are supported: 'synthetic'

predictMethod

Method to predict. These are supported: 'terminalNodes'

...

Arguments for the tree ensembler

Details

If method is 'synthetic', a tree ensemble is grown to seperate actual data from synthetic data using 'synthetic_forest' function. If predictMethod is 'terminalNodes', distance matrix is computed from cooccurance in terminal nodes using 'forage' function.

Value

A object of class 'dist'

Examples

1
2
3
4
5
## Not run: 
dm <- dist(iris[, 1:4])
attr(dm, "Size")

## End(Not run)

talegari/forager documentation built on May 3, 2019, 4:01 p.m.