Description Usage Arguments Value Examples
This is a script of decision forest for easy use t
1 |
Train_X |
Training Dataset |
Train_Y |
Training data endpoint |
Test_X |
Testing Dataset |
Test_Y |
Testing data endpoint |
mode |
pre-defined modeling |
data_matrix training and testing result
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # data(demo_simple)
X = iris[,1:4]
Y = iris[,5]
names(Y)=rownames(X)
random_seq=sample(nrow(X))
split_rate=3
split_sample = suppressWarnings(split(random_seq,1:split_rate))
Train_X = X[-random_seq[split_sample[[1]]],]
Train_Y = Y[-random_seq[split_sample[[1]]]]
Test_X = X[random_seq[split_sample[[1]]],]
Test_Y = Y[random_seq[split_sample[[1]]]]
Result = DF_easy(Train_X, Train_Y, Test_X, Test_Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.