forked from mini-pw/2021L-WB-Book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6-1-MIMIC.Rmd
47 lines (27 loc) · 3.35 KB
/
6-1-MIMIC.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## Topic
*Authors: Adrian Stańdo, Maciej Pawlikowski, Mariusz Słapek (Warsaw University of Technology)*
### Abstract
Technological advances were early adopted by healthcare with great benefits and developments. In many health-related realms machine learning is crucial such as: development of new medical procedures, the treatment of chronic diseases, the management of patient records and data. Explainable AI (XAI) gives invaluable tools in healthcare for understanding the models by humans.
The aim of this article is to compare PDP profiles for a Rashomon set with a given metric. Following we use five different metrics of distance function and based on that we compare PDP curves.
Additionally, the library in the Python language has been created, which automates this research. We have observed that the created models, which have similar scores, have different variable importances.
In this paper these differences were measured and assessed to understand better the problem of predicting hospital mortality using data from MIMIC-III.
### Literature review
Rashomon is a intriguing Japanese movie in which four people witness an incident from different vantage points. When they come to testify in court, they all report the same facts, but their stories of what happened are very different.
In machine learning Rashomon set is used to characterise problem in which many different models offer accurate results describing the same data.
However, not every accurate model gives a right conclusion as described in [@6-0-breiman2001statistical]: *"If the model is a poor emulation of nature, the conclusion might be worng"*. Herein authors also explain basics of Rashomon sets on example. Much more in depth and mathematical description is provided in [@6-0-rashomon-intro].
Another important topic related to Rashomon sets is analysing the feature importance of the model. It was described in this article [@6-0-rashomon-variable-importance], where authors suggested to study the maximum and minimum of variable importance across all models included in the Rashomon set. This technique was called MCR (Model Class Reliance).
Furthermore, [@6-0-rashomon-variable-importance-cloud] presented technique to visualise the "cloud" of variable importance for models in the set, which could help us understand the Rashomon set and choose the one which give the best interpretation. The last question stated in the article [@6-0-rudin-challenges] was about choosing model from the Rashomon set. It might be a difficult task, especially when we lack good exploration tools.
[@6-1-beams-system] created a system called BEAMS that allows to choose the most important features. Next, the program searches the hypothesis space in order to find model which fits best to given constraints. Since this system works only with linear regression classifiers, [@6-0-rudin-challenges] stated a question if it is possible to design a simmilar system which will search only models within the Rashomon set.
### Results
#### Results of models search
![](images/6-1-rashomon_ratio.png)
### Best models
![](images/6-1-results.png)
#### Boxplots of abs_sum metric for the best models
![](images/6-1-boxplot_1.png)
#### Boxplots of abs_sum metric for each feature
![](images/6-1-boxplot_2_2.png)
#### PDP curve for albumin_std
![](images/6-1-albumin_std_pdp.png)
#### PDP curve for atempc_min
![](images/6-1-tempc_min_pdp.png)