scikit-learn-contrib / MAPIE

A scikit-learn-compatible module to estimate prediction intervals and control risks based on conformal predictions.
https://mapie.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.27k stars 102 forks source link

Fix KeyError by Correcting Key Name in Dataset Loading Process #441

Open mohliyet opened 4 months ago

mohliyet commented 4 months ago

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:

  1. Pull the latest changes from the repository.
  2. Apply this pull request to your local environment.
  3. Run the dataset loading process.
  4. Verify that the process completes without encountering KeyError.
  5. Check that label names are retrieved correctly.

Checklist

LacombeLouis commented 4 months ago

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!