DF_easy {Dforest}R Documentation

Simple pre-defined pipeline for Decision forest

Description

This is a script of decision forest for easy use t

Usage

DF_easy(Train_X, Train_Y, Test_X, Test_Y, mode = "default")

Arguments

Train_X

Training Dataset

Train_Y

Training data endpoint

Test_X

Testing Dataset

Test_Y

Testing data endpoint

mode

pre-defined modeling

Value

data_matrix training and testing result

Examples

  # 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)

[Package Dforest version 0.4.2 Index]