Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mattis #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
Binary file removed .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions 005_excel_workbook/005_excel_workbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ library(timetk)

# 2.0 GET DATA ----

stock_data_tbl <- c("AAPL", "GOOG", "NFLX", "NVDA") %>%
tq_get(from = "2010-01-01", to = "2019-12-31")
stock_data_tbl <- c("AMD", "GOOG", "VOW.F", "TSLA") %>%
tq_get(from = "2010-01-01", to = "2021-12-31")

stock_pivot_table <- stock_data_tbl %>%
pivot_table(
Expand Down
Binary file modified 005_excel_workbook/stock_analysis.xlsx
Binary file not shown.
1 change: 1 addition & 0 deletions 025_eda_dataexplorer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gss_survey_data_profile_report.html
46 changes: 24 additions & 22 deletions 025_eda_dataexplorer/gss_survey_data_profile_report.html

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions 028_esquisse_ggplot/028_esquisse_ggplot_builder.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ mpg
esquisser()









library(dplyr)
library(ggplot2)


drinks %>%
filter(date >= "2005-01-14" & date <= "2014-01-22") %>%
ggplot() +
Expand Down
1 change: 1 addition & 0 deletions 041_easystats_performance/041_easystats_performance.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

library(tidyverse)
library(performance)
library(plotly)


# DATA ----
Expand Down
4 changes: 2 additions & 2 deletions 048_radiant/048_radiant.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
library(radiant)
library(timetk)

data(walmart_sales_weekly)
data<-data(walmart_sales_weekly)

# RUN RADIANT ----

radiant()
radiant(data)

# LEARNING MORE ----

Expand Down
Binary file added 048_radiant/GMs_Test.state.rda
Binary file not shown.
Binary file modified 052_modeldown/output/explainers/Random Forest.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion 052_modeldown/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28388,7 +28388,7 @@ <h3 class="my-3">Summaries for categorical variables</h3>
<footer>
<div class="footer">
<div class="text-center">Site built with <a href="https://github.com/MI2DataLab/modelDown">modelDown</a>.</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-06-28 11:35:43 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-07-07 11:39:13 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
</div>
</footer>

Expand Down
Binary file modified 052_modeldown/output/repository/backpack.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 052_modeldown/output/session_info/session_info.rda
Binary file not shown.
343 changes: 154 additions & 189 deletions 052_modeldown/output/session_info/session_info.txt

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions 052_modeldown/output/variable_importance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2>Feature Importance</h2>
<img class="plot" src="img/variable_importance.png" />
<br />
<help-panel help-url="https://pbiecek.github.io/ema/featureImportance.html" docs-url="https://modeloriented.github.io/DALEX/reference/variable_importance.html"></help-panel>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;a70e9b999342083e864739bd71cfc61c&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;a377b06314eaf30bd2fcea4d115d6470&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
</div>
<div class="data-container">
<br>
Expand All @@ -109,27 +109,27 @@ <h2>Feature Importance</h2>
<tr grouplength="6"><td colspan="2" style="border-bottom: 1px solid;"><strong>Random Forest</strong></td></tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> _full_model_ </td>
<td style="text-align:right;"> 0.6703928 </td>
<td style="text-align:right;"> 1.193143 </td>
</tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> contract </td>
<td style="text-align:right;"> 0.5505271 </td>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> customer_id </td>
<td style="text-align:right;"> 1.193143 </td>
</tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> tenure </td>
<td style="text-align:right;"> 0.6157622 </td>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> gender </td>
<td style="text-align:right;"> 1.196064 </td>
</tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> gender </td>
<td style="text-align:right;"> 0.6597656 </td>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> contract </td>
<td style="text-align:right;"> 1.247315 </td>
</tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> customer_id </td>
<td style="text-align:right;"> 0.6703928 </td>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> tenure </td>
<td style="text-align:right;"> 1.252912 </td>
</tr>
<tr>
<td style="text-align:left;padding-left: 2em;" indentlevel="1"> _baseline_ </td>
<td style="text-align:right;"> 0.5015131 </td>
<td style="text-align:right;"> 1.229207 </td>
</tr>
</tbody>
</table>
Expand All @@ -141,7 +141,7 @@ <h2>Feature Importance</h2>
<footer>
<div class="footer">
<div class="text-center">Site built with <a href="https://github.com/MI2DataLab/modelDown">modelDown</a>.</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-06-28 11:35:43 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-07-07 11:39:12 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
</div>
</footer>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 25 additions & 25 deletions 052_modeldown/output/variable_response/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,60 +93,60 @@
<div class="panel panel-default">
<ul class="list-group">
<li class="list-group-item variable-link">
<a href="#customer_id">customer_id</a>
<a href="#tenure">tenure</a>
</li>
<li class="list-group-item variable-link">
<a href="#gender">gender</a>
<a href="#contract">contract</a>
</li>
<li class="list-group-item variable-link">
<a href="#tenure">tenure</a>
<a href="#gender">gender</a>
</li>
<li class="list-group-item variable-link">
<a href="#contract">contract</a>
<a href="#customer_id">customer_id</a>
</li>
</ul>
</div>
</div>
<div class="col-md-push-3 col-md-9 main-content contents">
<div class="plot-container">
<h2 id="customer_id" class="hasAnchor">
<a href="#customer_id" class="anchor"></a>
Feature: customer_id
<h2 id="tenure" class="hasAnchor">
<a href="#tenure" class="anchor"></a>
Feature: tenure
</h2>
<img class="plot" src="img/variable_response_customer_id_partial.png" />
<img class="plot" src="img/variable_response_tenure_partial.png" />
<br />
<help-panel help-url="https://pbiecek.github.io/ema/partialDependenceProfiles.html" docs-url="https://modeloriented.github.io/DALEX/reference/model_profile.html"></help-panel>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;c7049a7d372078dcf39bcfaf069ec4a7&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;121cfeca42cb1acd157e7a6794e5d507&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
</div>
<div class="plot-container">
<h2 id="gender" class="hasAnchor">
<a href="#gender" class="anchor"></a>
Feature: gender
<h2 id="contract" class="hasAnchor">
<a href="#contract" class="anchor"></a>
Feature: contract
</h2>
<img class="plot" src="img/variable_response_gender_partial.png" />
<img class="plot" src="img/variable_response_contract_partial.png" />
<br />
<help-panel help-url="https://pbiecek.github.io/ema/partialDependenceProfiles.html" docs-url="https://modeloriented.github.io/DALEX/reference/model_profile.html"></help-panel>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;4ea5f2d877de965b4bd5bf4162b39c09&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;0dfcd386b8aad82593678501a1129874&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
</div>
<div class="plot-container">
<h2 id="tenure" class="hasAnchor">
<a href="#tenure" class="anchor"></a>
Feature: tenure
<h2 id="gender" class="hasAnchor">
<a href="#gender" class="anchor"></a>
Feature: gender
</h2>
<img class="plot" src="img/variable_response_tenure_partial.png" />
<img class="plot" src="img/variable_response_gender_partial.png" />
<br />
<help-panel help-url="https://pbiecek.github.io/ema/partialDependenceProfiles.html" docs-url="https://modeloriented.github.io/DALEX/reference/model_profile.html"></help-panel>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;456618d06c87386ec3260d895ffb9cb4&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;da743662d92c6c172d3bcdef8481c642&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
</div>
<div class="plot-container">
<h2 id="contract" class="hasAnchor">
<a href="#contract" class="anchor"></a>
Feature: contract
<h2 id="customer_id" class="hasAnchor">
<a href="#customer_id" class="anchor"></a>
Feature: customer_id
</h2>
<img class="plot" src="img/variable_response_contract_partial.png" />
<img class="plot" src="img/variable_response_customer_id_partial.png" />
<br />
<help-panel help-url="https://pbiecek.github.io/ema/partialDependenceProfiles.html" docs-url="https://modeloriented.github.io/DALEX/reference/model_profile.html"></help-panel>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;230eb3bdccba2cd024772a22beb96445&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
<div class="archivist-code"><p>Get this object: <code>archivist::loadFromLocalRepo(md5hash = &quot;97f17d621137c8784e2a0ac16738c62b&quot;, repoDir = &quot;052_modeldown/output/repository&quot;)</code></p></div>
</div>
</div>
</div>
Expand All @@ -155,7 +155,7 @@ <h2 id="contract" class="hasAnchor">
<footer>
<div class="footer">
<div class="text-center">Site built with <a href="https://github.com/MI2DataLab/modelDown">modelDown</a>.</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-06-28 11:35:43 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
<div class="text-center" style="margin: 0px 0px 5px;">Last updated: 2022-07-07 11:39:12 (session_info: <a href="session_info/session_info.txt">.txt</a>, <a href="session_info/session_info.rda">.rda</a>)</div>
</div>
</footer>

Expand Down