Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jul 8, 2024
1 parent 6c2895a commit 37aa78b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f989c861
e3b53485
10 changes: 5 additions & 5 deletions exercises/2-basic-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -7101,7 +7101,7 @@ <h2 class="anchored" data-anchor-id="cards-switch">2.3 Cards Switch</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(account_subset, "is_electronics", "training_score")
Expand Down Expand Up @@ -9376,7 +9376,7 @@ <h2 class="anchored" data-anchor-id="cards-switch">2.3 Cards Switch</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(account_subset, "is_electronics", "training_score")
Expand Down Expand Up @@ -10529,7 +10529,7 @@ <h2 class="anchored" data-anchor-id="layout-columns">2.4 Layout Columns</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(
Expand Down Expand Up @@ -11674,7 +11674,7 @@ <h2 class="anchored" data-anchor-id="layout-columns">2.4 Layout Columns</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(account_subset, "is_electronics", "training_score")
Expand Down Expand Up @@ -12823,7 +12823,7 @@ <h2 class="anchored" data-anchor-id="layout-columns">2.4 Layout Columns</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(
Expand Down
12 changes: 6 additions & 6 deletions exercises/3-reactivity.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ <h2 class="anchored" data-anchor-id="reactive-calc">3.1 Reactive Calc</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
# `account_data` is called similar to an input.
if input.metric() == "ROC Curve":
return plot_auc_curve(
Expand Down Expand Up @@ -1411,7 +1411,7 @@ <h2 class="anchored" data-anchor-id="reactive-calc">3.1 Reactive Calc</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
account_subset = df[df["account"] == input.account()]
if input.metric() == "ROC Curve":
return plot_auc_curve(
Expand Down Expand Up @@ -2569,7 +2569,7 @@ <h2 class="anchored" data-anchor-id="reactive-calc">3.1 Reactive Calc</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
# `account_data` is called similar to an input.
if input.metric() == "ROC Curve":
return plot_auc_curve(
Expand Down Expand Up @@ -3753,7 +3753,7 @@ <h2 class="anchored" data-anchor-id="stacking-reactives">3.2 Stacking Reactives<
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -4914,7 +4914,7 @@ <h2 class="anchored" data-anchor-id="stacking-reactives">3.2 Stacking Reactives<
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(account_data, "is_electronics", "training_score")
else:
Expand Down Expand Up @@ -6081,7 +6081,7 @@ <h2 class="anchored" data-anchor-id="stacking-reactives">3.2 Stacking Reactives<
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down
6 changes: 3 additions & 3 deletions exercises/4-dynamic-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h2 class="anchored" data-anchor-id="render-express">4.1 Render Express</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -1448,7 +1448,7 @@ <h2 class="anchored" data-anchor-id="render-express">4.1 Render Express</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -2625,7 +2625,7 @@ <h2 class="anchored" data-anchor-id="render-express">4.1 Render Express</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down
13 changes: 7 additions & 6 deletions exercises/5-reactive-effect.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h2 class="anchored" data-anchor-id="reactive-event">5.1 Reactive Event</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -1464,7 +1464,8 @@ <h2 class="anchored" data-anchor-id="reactive-event">5.1 Reactive Event</h2>
with ui.card():
ui.card_header("Model Metrics")

def metric_plot():
@render_plotly
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -2647,7 +2648,7 @@ <h2 class="anchored" data-anchor-id="reactive-event">5.1 Reactive Event</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -3845,7 +3846,7 @@ <h2 class="anchored" data-anchor-id="reactive-effect">5.2 Reactive Effect</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -5020,7 +5021,7 @@ <h2 class="anchored" data-anchor-id="reactive-effect">5.2 Reactive Effect</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down Expand Up @@ -6205,7 +6206,7 @@ <h2 class="anchored" data-anchor-id="reactive-effect">5.2 Reactive Effect</h2>
ui.card_header("Model Metrics")

@render_plotly
def metric_plot():
def metric():
if input.metric() == "ROC Curve":
return plot_auc_curve(
character_filter(), "is_electronics", "training_score"
Expand Down
20 changes: 10 additions & 10 deletions search.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/exercises/3-reactivity.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/exercises/4-dynamic-ui.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/exercises/5-reactive-effect.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/index.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/exercises/1-hello-world.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
<url>
<loc>https://posit-dev.github.io/py-shiny-workshop/exercises/2-basic-ui.html</loc>
<lastmod>2024-07-08T21:41:31.361Z</lastmod>
<lastmod>2024-07-08T22:02:31.650Z</lastmod>
</url>
</urlset>

0 comments on commit 37aa78b

Please sign in to comment.