select.rules | R Documentation |
Select rules from a extrat.rules (rules)
object
select.rules(object, data, data.pair = FALSE)
object |
An extracted rule |
data |
A validation dataset for selecting rules. |
data.pair |
Is data already converted into binary ranked pairs from the |
rule |
Interpretable selected rules. Note that the performance score displayed is inaccurate based on few samples from the original argument |
rule.raw |
Rules directly extracted from trees for prediction purpose |
data |
Data used to grow trees from the argument |
Ruijie Yin (Maintainer,<ruijieyin428@gmail.com>), Chen Ye and Min Lu
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.