Learn R Programming

FeaLect (version 1.20)

ignore.redundant: Refines a feature matrix

Description

If the value a feature is the same for all points (e.g. =0), it can be ignored.

Usage

ignore.redundant(F, num.of.values = 1)

Arguments

F

The feature matrix, each column is a feature.

num.of.values

A feature should have more than this threshold non-zero values not to be ignored.

Value

The refined feature matrix.

References

"Statistical Analysis of Overfitting Features", manuscript in preparation.

See Also

FeaLect, train.doctor, doctor.validate, random.subset, compute.balanced,compute.logistic.score, ignore.redundant, input.check.FeaLect

Examples

Run this code
# NOT RUN {
library(FeaLect)
data(mcl_sll)
F <- as.matrix(mcl_sll[ ,-1])	# The Feature matrix
#F <- cbind(F, rep(1, times=dim(F)[1]))
message(dim(F)[1], " samples and ",dim(F)[2], " features.")

G <- ignore.redundant(F)
message("for ",dim(G)[1], " samples, ",dim(G)[2], " features are left.")

# }

Run the code above in your browser using DataLab