View source: R/feature_selection.R
feature_selector | R Documentation |
This function creates a feature selection specification using the provided method, cutoff type, and cutoff value.
feature_selector(method, cutoff_type, cutoff_value)
method |
The type of feature selection method to use. Supported methods are "FTest" and "catscore". |
cutoff_type |
The type of threshold used to select features. Supported cutoff types are "top_k" and "top_p". |
cutoff_value |
The numeric value of the threshold cutoff. |
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.
A list with a class name equal to the method
argument.
fsel <- feature_selector("FTest", "top_k", 1000)
fsel <- feature_selector("FTest", "top_p", .1)
class(fsel) == "FTest"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.