solutions: Basic result of the mRMR procedure

Description Usage Arguments Author(s) Examples

Description

The 'solutions' method allows one to access the set of selected features resulting of the mRMR algorithm. More generally, the set of feature are identified by their indices in the inputed feature set (1 being the first feature (column)). At the network level, 'solutions' consists of the topology of the network, identifying which features is connected to others.

Usage

1
2
3
4
## S4 method for signature 'mRMRe.Filter'
solutions(object, mi_threshold, causality_threshold, with_fixed_features)
## S4 method for signature 'mRMRe.Network'
solutions(object)

Arguments

object

a mRMRe.Filter or mRMRe.Network object.

mi_threshold

a numeric value used in filtering the features based on their mRMR scores, features that do not pass the threshold will be set at NA.

causality_threshold

a numeric value used in filtering the features based on their causality scores, features that do not pass the threshold will be set at NA

with_fixed_features

a boolean indicating if fixed features are used in the computation, default TRUE

Author(s)

Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
set.thread.count(2)
data(cgps)
feature_data <- mRMR.data(data =  data.frame(cgps.ge))

# Create an mRMR filter and obtain the indices of selected features
filter <- mRMR.classic("mRMRe.Filter", data = feature_data, target_indices = 3:5,
						feature_count = 2)
solutions(filter)

# Build an mRMR-based network and obtain feature connections (topology)
network <- new("mRMRe.Network", data = feature_data, target_indices = c(1, 2),
			levels = c(2, 1), layers = 1)
solutions(network)

Example output

Loading required package: survival
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

[1] 2
$`3`
     [,1]
[1,]  592
[2,]  805

$`4`
     [,1]
[1,]  578
[2,]  339

$`5`
     [,1]
[1,]  149
[2,]  586

$`1`
     [,1] [,2]
[1,]  422  767
[2,]  130  125

$`2`
     [,1] [,2]
[1,]  126  699
[2,]  926   46

$`422`
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

$`130`
     [,1] [,2]
[1,]    1   NA
[2,]   NA   NA

$`767`
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

$`125`
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

$`126`
     [,1] [,2]
[1,]  767   NA
[2,]   NA   NA

$`926`
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

$`699`
     [,1] [,2]
[1,]   NA   NA
[2,]    2    2

$`46`
     [,1] [,2]
[1,]   NA   NA
[2,]   NA   NA

mRMRe documentation built on Sept. 5, 2021, 5:26 p.m.