Learn R Programming

multiclassPairs (version 0.4.3)

Build MultiClass Pair-Based Classifiers using TSPs or RF

Description

A toolbox to train a single sample classifier that uses in-sample feature relationships. The relationships are represented as feature1 < feature2 (e.g. gene1 < gene2). We provide two options to go with. First is based on 'switchBox' package which uses Top-score pairs algorithm. Second is a novel implementation based on random forest algorithm. For simple problems we recommend to use one-vs-rest using TSP option due to its simplicity and for being easy to interpret. For complex problems RF performs better. Both lines filter the features first then combine the filtered features to make the list of all the possible rules (i.e. rule1: feature1 < feature2, rule2: feature1 < feature3, etc...). Then the list of rules will be filtered and the most important and informative rules will be kept. The informative rules will be assembled in an one-vs-rest model or in an RF model. We provide a detailed description with each function in this package to explain the filtration and training methodology in each line. Reference: Marzouka & Eriksson (2021) .

Copy Link

Version

Install

install.packages('multiclassPairs')

Monthly Downloads

258

Version

0.4.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Nour-al-dain Marzouka

Last Published

May 16th, 2021

Functions in multiclassPairs (0.4.3)

group_TSP

Internal function: for grouping labels for one-vs-rest usage
filter_genes_TSP

Filter genes/features for multiclass one-vs-rest classifier downstream training
optimize_RF

Optimize parameters to be used in training the final RF model
proximity_matrix_RF

Plot binary rule-based heatmaps
ReadData

Function for preparing data object
do_dunn_test

internal function
sort_genes_RF

Sort genes/features for pair-based random forest classifier downstream steps
predict_one_vs_rest_TSP

Predict sample class based on one-vs-rest multiclass top score pairs classifier
print-methods

Methods for Function print in Package multiclassPairs
plot_binary_TSP

Plot binary rule-based heatmaps
train_RF

Train pair-based random forest model
predict_RF

Predict sample class based on gene pair-based random forest classifier
sort_rules_RF

Create and sort feature/gene pairs for pair-based random forest classifier training step
summary_genes_RF

Summarize sorted genes to rules
train_one_vs_rest_TSP

Build multiclass rule-based classifier as one-vs-rest scheme
plot_binary_RF

Plot binary rule-based heatmaps