Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 4.interpret_model/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 4. Interpret Model

In this module, we interpret the final and shuffled baseline ML models.
In this module, we interpret the ML models.

After training the final and baseline models in [2.train_model](../2.train_model/), we load the coefficents of these models from [models/](../2.train_model/models).
These coefficients are interpreted with the following diagrams:

- We use [seaborn.heatmap](https://seaborn.pydata.org/generated/seaborn.heatmap.html) to display the coefficient values for each phenotypic class/feature.
- We use [seaborn.clustermap](https://seaborn.pydata.org/generated/seaborn.clustermap.html) to display a hierarchically-clustered heatmap of coefficient values for each phenotypic class/feature
- We use [seaborn.kedeplot](https://seaborn.pydata.org/generated/seaborn.kdeplot.html) to display a density plot of coeffiecient values for each phenotypic class.
- We use [seaborn.barplot](https://seaborn.pydata.org/generated/seaborn.barplot.html) to display a bar plot of average coeffiecient values per phenotypic class and feature.
- We use [seaborn.barplot](https://seaborn.pydata.org/generated/seaborn.barplot.html) to display a bar plot of average coeffiecient values per phenotypic class.

## Step 1: Interpret Model

Expand All @@ -27,6 +27,6 @@ bash interpret_model.sh

## Results

Each model's interpretations can be found in [interpret_model.ipynb](interpret_model.ipynb).
Each model's interpretations can be found in [interpret_model_coefficients.ipynb](interpret_model_coefficients.ipynb).

**Note:** Intermediate `.tsv` data are stored in tidy format, a standardized data structure (see [Tidy Data](https://vita.had.co.nz/papers/tidy-data.pdf) by Hadley Wickham for more details).
2,476 changes: 2,476 additions & 0 deletions 4.interpret_model/coefficients/final__CP__coefficients.tsv

Large diffs are not rendered by default.

21,676 changes: 21,676 additions & 0 deletions 4.interpret_model/coefficients/final__CP_and_DP__coefficients.tsv

Large diffs are not rendered by default.

19,201 changes: 19,201 additions & 0 deletions 4.interpret_model/coefficients/final__DP__coefficients.tsv

Large diffs are not rendered by default.

20,481 changes: 0 additions & 20,481 deletions 4.interpret_model/coefficients/final_model_coefficients.tsv

This file was deleted.

2,476 changes: 2,476 additions & 0 deletions 4.interpret_model/coefficients/shuffled_baseline__CP__coefficients.tsv

Large diffs are not rendered by default.

21,676 changes: 21,676 additions & 0 deletions 4.interpret_model/coefficients/shuffled_baseline__CP_and_DP__coefficients.tsv

Large diffs are not rendered by default.

19,201 changes: 19,201 additions & 0 deletions 4.interpret_model/coefficients/shuffled_baseline__DP__coefficients.tsv

Large diffs are not rendered by default.

20,481 changes: 0 additions & 20,481 deletions 4.interpret_model/coefficients/shuffled_baseline_model_coefficients.tsv

This file was deleted.

Loading