forked from neurodata/SPORF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUrerf.Rd
More file actions
49 lines (37 loc) · 1.94 KB
/
Urerf.Rd
File metadata and controls
49 lines (37 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Urerf.R
\name{Urerf}
\alias{Urerf}
\title{Unsupervised RerF forest Generator}
\usage{
Urerf(X, trees = 100, min.parent = round(nrow(X)^0.5),
max.depth = NA, mtry = ceiling(ncol(X)^0.5), sparsity = 1/ncol(X),
normalizeData = TRUE, Progress = TRUE, splitCrit = "twomeans",
LinearCombo = TRUE)
}
\arguments{
\item{X}{an n by d numeric matrix. The rows correspond to observations and columns correspond to features.}
\item{trees}{the number of trees in the forest. (trees=100)}
\item{min.parent}{the minimum splittable node size. A node size < min.parent will be a leaf node. (min.parent = round(nrow(X)^.5))}
\item{max.depth}{the longest allowable distance from the root of a tree to a leaf node (i.e. the maximum allowed height for a tree). If max.depth=NA, the tree will be allowed to grow without bound. (max.depth=NA)}
\item{mtry}{the number of features to test at each node. (mtry=ceiling(ncol(X)^.5))}
\item{sparsity}{a real number in \eqn{(0,1)} that specifies the distribution of non-zero elements in the random matrix. (sparsity=1/nrow(X))}
\item{normalizeData}{a logical value that determines if input data is normalized to values ranging from 0 to 1 prior to processing. (normalizeData=TRUE)}
\item{Progress}{boolean for printing progress.}
\item{splitCrit}{split based on twomeans(splitCrit="twomeans") or BIC test(splitCrit="bicfast")}
\item{LinearCombo}{logical that determines whether to use linear combination of features. (LinearCombo=TRUE).}
}
\value{
urerfStructure
}
\description{
Creates a decision forest based on an input matrix.
}
\examples{
### Train RerF on numeric data ###
library(rerf)
urerfStructure <- Urerf(as.matrix(iris[, 1:4]))
urerfStructure.bic <- Urerf(as.matrix(iris[, 1:4]), splitCrit = 'bicfast')
dissimilarityMatrix <- hclust(as.dist(1 - urerfStructure$similarityMatrix), method = "mcquitty")
clusters <- cutree(dissimilarityMatrix, k = 3)
}