-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Model Exploration step 3 seems to be broken #60
Comments
See also #29. |
And #30 is also related. To fix these related issues, I'm going to move much of the functionality for Model Exploration's step 3 to a new training step 3. This step will save model metadata including feature importances. The Model Exploration step 3 will be deprecated and eventually removed. |
This is not hooked up and polished yet. The new step will save metadata about the model trained in the previous step for inspection and debugging.
One of these tests is failing because LinkStepSaveModelMetadata is erroring out when it's not skipped.
It is not serialized to the filesystem anymore. This does mean that it doesn't persist between runs of hlink, so I added a note to that effect.
This seems to be working nicely. There's still a little bit to iron out about feature importances vs. coefficients for different models.
We've done what the TODO comment here says and created a step in training that does this for us. So we can get rid of this method to keep things organized.
We could deprecate this and treat it as a breaking change, but I see two reasons to just go ahead and remove this as a bug fix: 1. This step is undocumented. 2. This step is really buggy and does not work at all. Users really should not be using it. Now training step 3 does what this step was supposed to do.
Add a doc comment and remove some unhelpful code comments.
I've documented that this step is available only for Training, not for Household Training at the moment. We can easily add this functionality to Household Training as well if it would be useful.
We need to access training.feature_importances, not a top-level feature_importances attribute.
After taking a closer look at the old Model Exploration step 3, it was clearly a rough draft and not production ready. There were numerous bugs, and it was entirely undocumented. So I'm going to treat this as a bug fix and remove Model Exploration step 3 without deprecating it. Users that are looking for similar functionality should use Training step 3 instead now. |
This step has been breaking for me recently, so I took a look at it. It seems to me that
model_exploration.link_step_get_feature_importances
is not reading in its chosen model correctly. It expects step 2 (link_step_train_test_models
) to serialize the model to a particular path. But I believe step 2 instead saves the model to a dictionary on theLinkRun
.This causes step 3 to error out each time it looks for the chosen model because it can't find it. We don't have any tests that cover this module, so adding some tests that run all of the steps for Model Exploration in a row might be very helpful.
The text was updated successfully, but these errors were encountered: