A practical example of using LIME for classification problems
So far, we have covered most of the in-depth conceptual understanding that is needed regarding the LIME algorithm. In this section, we will try to explore the LIME Python framework for explaining classification problems. The framework is available as an open source project on GitHub at https://github.com/marcotcr/lime. Installing LIME in Python can be done easily using the pip
installer inside the Jupyter notebook:
!pip install lime
The complete notebook version of the tutorial is accessible from the GitHub repository at https://github.com/PacktPublishing/Applied-Machine-Learning-Explainability-Techniques/blob/main/Chapter04/Intro_to_LIME.ipynb. However, for now, I will try to walk you through the entire code so that you understand the code in detail. Once the LIME framework has been installed, quickly verify whether the installation was successful or not by importing the library:
import lime
If the import was...