Create a feature selection specification
feature_selector.Rd
This function creates a feature selection specification using the provided method, cutoff type, and cutoff value.
Details
The available feature selection methods are:
- FTest: Computes a one-way ANOVA for every column in the feature matrix.
- catscore: Computes a correlation adjusted t-test for every column in the matrix using sda.ranking
from the sda
package.
Examples
fsel <- feature_selector("FTest", "top_k", 1000)
fsel <- feature_selector("FTest", "top_p", .1)
class(fsel) == "FTest"
#> [1] TRUE FALSE FALSE