-
Notifications
You must be signed in to change notification settings - Fork 7
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
How to view table with score and selected variables with information gain feature selection? #5
Comments
Sorry for the delayed response - did you try the 'tidy' method on the extracted recipe object - like:
|
hello @stevenpawley, Please help me! This code does not provide the 'variable' and 'scores' columns containing the variable names and their information gain I will provide a reproducible example with my data, but if you prefer, show me an example of how to extract these variables and the respective scores for information gain with the reprex Link to download the database used:Repex reproducible example*** Load the following R packages ----
Preparing data for preprocessing with recipe
Full = Training + Forecast Datasets
Apply Group-wise Time Series Manipulations
Consolidate IDs
Training Data
Forecast Data
** Summary Diagnostics. Let us check the regularity of all time series with timetk::tk_summary_diagnostics() ** Check for summary of timeseries data for training set
Data Splitting ----Now we set aside the future data (we would only need that later when we make forecast)And focus on training data* 4.1 Panel Data Splitting ----Split the dataset into analyis/assessment set
Feature Selection and preprocessing ----Information gain feature selection ----
Model 1: grid search LightGBM ----
best model candidate selected
I tried extracting with the pull_importances() function, but that throws an error:No method for pulling feature importances is defined for _lgb.Booster After training the model with the above preprocessing step the scores should be calculated but I can't find them. Please, can you help me. an example of how to view scores with the
|
Ah, thanks probably because LightGBM as a model isn't supported yet for extracting feature importances. XGBoost is supported, but I didn't add the method for LGBM yet. You could try the |
Hi, yes LightGBM is not Grateful |
Hello, @stevenpawley @topepo |
Hello, I'm taking a look now. A few things that immediately stand out are that you shouldn't import both Aside from the lack of a
And if you want the scores:
|
Hi @stevenpawley! |
Dear, @stevenpawley
I can't see the scores function table that features the 'variable' and 'scores' columns containing the variable names and their scores. Could you help me find these values?
Information gain feature selection ----
After training the model with the above preprocessing step the scores should be calculated but I can't find them. Please, can you help me. an example of how to view scores with the
scores
function would suffice.The text was updated successfully, but these errors were encountered: