input.check.FeaLect {FeaLect} | R Documentation |
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. |
Details
If the input is not appropriate, error or warning message will be produced.
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. |
Author(s)
Habil Zare
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
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)