Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sampleWeights

Accessor function for the 'sampleWeights' information in a mRMRe.Data object


Description

TODO

Usage

## S4 method for signature 'mRMRe.Data'
sampleWeights(object)
## S4 replacement method for signature 'mRMRe.Data'
sampleWeights(object) <- value

Arguments

object

a mRMRe.Data object.

value

a numeric vector containing the biases of each sample in the mutual information computation.

Author(s)

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

Examples

set.thread.count(2)
data(cgps)
feature_data <- mRMR.data(data = data.frame(cgps.ge))

# Uniform weight (default)
sampleWeights(feature_data)

# Random weighting  
sampleWeights(feature_data) <- runif(sampleCount(feature_data))
# Show result
sampleWeights(feature_data)

mRMRe

"Parallelized Minimum Redundancy, Maximum Relevance (mRMR) Ensemble Feature Selection"

v2.1.0
Artistic-2.0
Authors
Nicolas De Jay, Simon Papillon-Cavanagh, Catharina Olsen, Gianluca Bontempi, Benjamin Haibe-Kains
Initial release
2020-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.