Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When few features exist or none of the features correlates well with the target, a subscriptOutOfBounds exception is thrown #11

Open
cosmin-novac opened this issue Mar 26, 2020 · 0 comments

Comments

@cosmin-novac
Copy link

cosmin-novac commented Mar 26, 2020

threshold_corr is built using the average correlations of the features, but this also includes the correlation "1" of the target value itself. This means that in situations in which I either don't have many features or they correlate badly, the correlated_features variable remains empty and a subscriptOutOfBounds exception is thrown:

cc <- bounceR::featureFiltering(data = fewFeaturesData,
                                target = targetCol,
                                method = "cc",
                                returning = "data")

Error in subset_df[, paste(collinear$Var1[i])] : subscript out of bounds

@cosmin-novac cosmin-novac changed the title When few features exist or none of the features correlated well with the target, a subscriptOutOfBounds exception is thrown When few features exist or none of the features correlates well with the target, a subscriptOutOfBounds exception is thrown Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant