Learn R Programming

ranktreeEnsemble (version 0.23)

select.rules: Select Decision Rules to Achieve Higher Prediction Accuracy

Description

Select rules from a extrat.rules (rules) object

Usage

select.rules(object, data, data.pair = FALSE)

Value

rule

Interpretable selected rules. Note that the performance score displayed is inaccurate based on few samples from the original argument object.

rule.raw

Rules directly extracted from trees for prediction purpose

data

Data used to grow trees from the argument (object).

Arguments

object

An extracted rule (rules) object generated from the extract.rules function.

data

A validation dataset for selecting rules.

data.pair

Is data already converted into binary ranked pairs from the pair function?

Author

Ruijie Yin (Maintainer,<ruijieyin428@gmail.com>), Chen Ye and Min Lu

References

Lu M. Yin R. and Chen X.S. Ensemble Methods of Rank-Based Trees for Single Sample Classification with Gene Expression Profiles. Journal of Translational Medicine. 22, 140 (2024). doi: 10.1186/s12967-024-04940-2

Examples

Run this code
# \donttest{
data(tnbc)
obj <- rforest(subtype~., data = tnbc[1:100,c(1:5,337)])
objr <- extract.rules(obj)
predict(objr, tnbc[101:110,1:5])$label
objrs <- select.rules(objr,tnbc[110:130,c(1:5,337)])
predict(objrs, tnbc[101:110,1:5])$label
# }

Run the code above in your browser using DataLab