This pull request addresses issue an issue, where the key name used to access label names in the dataset loading process was incorrect. The key 'lac' has been replaced with the correct key 'label' to ensure proper retrieval of label names.
Motivation and Context:
The motivation behind this change is to rectify the KeyError that occurs during the dataset loading process due to the incorrect key name usage. By replacing the key with the correct one, we ensure that the code functions as intended and retrieves the label names successfully.
Type of change
Bug fix (non-breaking change which fixes an issue)
Dependencies:
No new dependencies are introduced by this change.
How Has This Been Tested:
[x] Ran the updated code with the fix applied.
[x] Verified that the KeyError no longer occurs during the dataset loading process.
[x] Ensured that label names are retrieved correctly.
[x] Ran unit tests to verify the correctness of the fix.
Instructions for Testing:
Pull the latest changes from the repository.
Apply this pull request to your local environment.
Run the dataset loading process.
Verify that the process completes without encountering KeyError.
Hey @mohliyet,
Thank you for this PR! For the moment it doesn't pass some tests, but we have fixed the issue. So you can git merge upstream/main and everything should work!
Thank you!
Description
This pull request addresses issue an issue, where the key name used to access label names in the dataset loading process was incorrect. The key 'lac' has been replaced with the correct key 'label' to ensure proper retrieval of label names.
Motivation and Context:
The motivation behind this change is to rectify the KeyError that occurs during the dataset loading process due to the incorrect key name usage. By replacing the key with the correct one, we ensure that the code functions as intended and retrieves the label names successfully.
Type of change
Dependencies:
No new dependencies are introduced by this change.
How Has This Been Tested:
Instructions for Testing:
Checklist
make lint
make type-check
make tests
make coverage
make doc