I’m trying to add a test folder to a trained learner using these steps:
- train learner, save stage
- load stage
- create new data object, this time invoking the add_test_folder api as well.
- assign this data to the original learner
- run learner.predict and interpretations on the test set
The last step runs into errors. I think I know why, but don’t know how to fix it. Here is how I added the test folder:
The only way I could get test folder to be added to test_ds was by placing it in the same location as the training/validation data, which was kdeftpath. But because I do label_from_folder, the new data object now has 1 additional label called “test”. This results in mismatch in sizes and indices between the original data/model and the interpretation on the new data block. Can someone please help me fix this?
This is the actual error I see when i try to create the Interpretation object: