Description Usage Arguments Details Value References Examples
Compute dissimilarity matrix between observations by training a randomForest (RF) classifier to descriminate between the 'original' data and a synthetic version. The original data is labeled as "True.Data" while the synthetic data is labeled “Synthetic.Data". The random forest p roximity matrix between observations in the original data are then extracted, converted to distance, and returned. The synthetic data is generated by taking a random sample from each dimension of the true data, with or without replacement.
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
data.frame or matrix |
... |
further arguments passed to |
mtry |
mtry in |
ntree, |
number of trees |
no.rep |
number of repetitions or forests |
syn.type |
type of synthetic data generator: "emperical" generate samples from the emperical distribution of the original data while "permute" takes a permutation of each dimension. emerical is just sample with replacement while permute is without replacement |
importance |
(logical) compute variable importance ? |
nodesize |
node size in |
parallel |
character vector specifying the type of parallel run: 'forests' - run a total of
|
x |
object of class |
Methods
print
: print OOB error and convergence summary
plot
: plots the convergence of the RF proximities given by the MSE
over number of forest no.rep
A list with elements:
RFdist: RF proximity converted to a distance object
err: error rate
UnsupRFvarimp: Unsupervised RF variable importance
proxConver: a matrix containing three convergence meausres
Max.prox = max( abs( aveprox(N)- aveprox(N-1)))
MSE.prox = mean( (aveprox(N)- aveprox(N-1))^2)
Mean = mean(aveprox(N)) where N is number of forests (no.rep).
Tao Shi and Steve Horvath (2006) Unsupervised Learning with Random Forest Predictors. Journal of Computational and Graphical Statistics. Volume 15, Number 1, March 2006, pp. 118-138(21)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.