Become an AI Pro: Mastering LIME in Python Made Easy

preview_player
Показать описание
To access my secret discount portal:

Dataset to use in the video:

Local surrogate models are interpretable models that are used to explain individual predictions of black-box machine learning models. Local interpretable model-agnostic explanations (LIME) is a paper in which the authors propose a concrete implementation of local surrogate models. Surrogate models are trained to approximate the predictions of the underlying black-box model. Instead of training a global surrogate model, LIME focuses on training local surrogate models to explain individual predictions.

The idea is quite intuitive. First, forget about the training data and imagine you only have the black-box model where you can input data points and get the model's predictions. You can probe the box as often as you want. Your goal is to understand why the machine learning model made a specific prediction. LIME tests what happens to the predictions when you give variations of your data into the machine learning model. LIME generates a new dataset consisting of permuted samples and the corresponding predictions of the black-box model.

Intro(0:00)
Import libraries(0:56)
Loading Data(1:55)
Data processing(4:43)
Random Forest(8:36)
Lime(9:48)
Outro(16:34)
Рекомендации по теме
Комментарии
Автор

Hii!!.... its great tutorial about lime xai. simple and easy to understand, Thanks for such a
great video

fachrizalazzuri
Автор

Hello Diogo. Nice explanation! 👏👏 I have some questions.
1) How to obtain explanation for a particular test value.
For example,
Input
Instance of a test data
Jay India 80 years old
Now let's we wanna predict the COVID-19 risk.
Output:
high risk (let's It's a clasa)
Explanation of being risky : From the model.
Any information in your reply will be highly appreciating. Thank you

rahataraferdousi
Автор

Diogo, how do I get the local fidelity of the model? Thanks

Another question: Are you Brazillian?

SamaraSilvaSantos
Автор

Hi @Diogo, great video. Covered all the points I had in my mind. Yet, I have a question, Is it possible to apply LIME to a Cosine Similarity model? If yes then how?

RajanSingh-rpfu
Автор

Hello sir, I have applied this Lime code on my liver prediction dataset it executed. but, when I give location as "x_test.iloc[0]" It does not show the result of [0]th location record . please help me to solve this. thank you.

AIResearchTechniques
Автор

Hi! Thanks for such a great video. But is there an opportunity to use Lime without training data? I only have saved model and test values; how can I interpret samples in such a case?

elizavetapudim
Автор

Hi
Thank you so much for this video .
i would like to ask you, Can we explain a LSTM model with LIME?

abubakrhassan
Автор

Why the negative and positive contribution of these 5 features do not sum up to 100%? 0.07+0.06+0.05+0.05+0.03??? Even if i retain decimals, obviously this does not sum up to 100%

bryanparis
Автор

Can you explain a prophet model with LIME?

lolhiphop
Автор

Is there a link to access the code in this video?

AIstepbystep