Skip to content

Commit

Permalink
fix feature set with only one feature. Dont drop column names
Browse files Browse the repository at this point in the history
  • Loading branch information
RC-88 committed Sep 30, 2023
1 parent 605f4c6 commit b25adb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/candidate_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ candidate_search <- function(
# This can be obtained using the list of indices that were progressively
# excluded (if at all) in the step-wise procedure
# If returning only those features that led to the best global score
FS_best <- FS[global_best_s_features,]
FS_best <- FS[global_best_s_features, , drop=FALSE]

# Make a list containing two elements.
#The first will be the FS with the features that gave the best meta-feature
Expand Down

0 comments on commit b25adb2

Please sign in to comment.