Description Usage Arguments Value
Parse n_features
for forward and backward selection.
Handles two cases:
if n_features
is an integer, ensure it lies on (0, total).
if n_features
is a float, ensure it lies on (0, 1).
1 | parse_n_features(n_features, total)
|
n_features |
A numeric value passed to forward or backward selection. Can be a float or integer. |
total |
Total features in the data (equivalent to number of columns in X) |
Number of features to select. If initial n_features
lies on (0, total_features),
it will be returned 'as is'. If n_feature
is passed in as a proportion with range (0,1), it will
be converted to an integer representing proportion with respect to the total number of features.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.