Learn R Programming

FeaLect (version 1.20)

input.check.FeaLect: Checks the inputs to Fealect() function.

Description

We should have: F as a matrix, L as a vector, and length of L be equal to number of rows of F. They should have names accordingly.

Usage

input.check.FeaLect(F_, L_, maximum.features.num, gamma)

Arguments

F_

The feature matrix, each column is a feature.

L_

The vector of labels named according to the rows of F.

maximum.features.num

Upto this number of features are allowed to contribute to each linear model.

gamma

A value in range 0-1 that determines the relative size of sample subsets.

Value

Returns a list of:

F_

The feature matrix, each column is a feature.

L_

The vector of labels named according to the rows of F.

maximum.features.num

Upto this number of features are allowed to contribute to each linear model.

Details

If the input is not appropriate, error or warning message will be produced.

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
L <- as.numeric(mcl_sll[ ,1])	# The labels
names(L) <- rownames(F)

checked <- input.check.FeaLect(F_=F, L_=L, maximum.features.num=10, gamma=3/4)

# }

Run the code above in your browser using DataLab