Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
assuncaolfi committed Nov 18, 2023
1 parent c703db6 commit 7734135
Show file tree
Hide file tree
Showing 26 changed files with 430 additions and 1,365 deletions.
4 changes: 2 additions & 2 deletions _freeze/blog/fantasy-football/index/execute-results/html.json

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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 8 additions & 9 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ website:
title: "Luís Assunção"
site-url: https://assuncaolfi.github.io
repo-url: https://github.com/assuncaolfi/site
description: "A blog about statistics"
description: "My personal website"
navbar:
background: light
foreground: dark
left:
- about.qmd
- text: Blog
href: index.html
- index.qmd
- blog.qmd
- icon: rss
href: index.xml
href: blog.xml
- references.qmd
search: false

Expand All @@ -35,8 +34,8 @@ format:
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Sans&display=swap" rel="stylesheet">
mainfont: Fira Sans
monofont: Fira Code
repo-url: https://github.com/assuncaolfi/blog
theme:
light: sandstone
dark: sandstone
# theme:
# light: sandstone
# dark: sandstone
theme: sandstone
title-block-style: default # plain
129 changes: 0 additions & 129 deletions about.qmd

This file was deleted.

Binary file added assets/FiraCode-Regular.ttf
Binary file not shown.
File renamed without changes
21 changes: 21 additions & 0 deletions blog.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Blog"
citation: false
format:
html:
code-tools: false
listing:
categories: unnumbered
contents: blog
feed: true
field-display-names:
date: " "
title: " "
fields: [date, title]
filter-ui: false
sort-ui: false
sort: "date desc"
type: table
---


6 changes: 2 additions & 4 deletions blog/_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ citation:
date-modified: today
format:
html:
code-block-border-left:
true
code-block-border-left: true
code-tools:
source:
repo
source: repo
toc: true
10 changes: 6 additions & 4 deletions blog/fantasy-football/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def predict_model(
$$
where
$\mathbf{X}$ is a matrix of dummy-encoded team, versus and home variables;
$\mathbf{X}$ is a matrix of the dummy-encoded versus team and home variables;
$\mathbf{\beta}$ is a vector of fixed effects.
This brings more context to our predictions. It also provides a reasonable
Expand All @@ -666,14 +666,16 @@ def predict_model(

# %%
# | label: score-prediction-fixture-mixed-effects
# | message: false
# | warning: false
predict_mixed_effects = partial(
predict_model,
formula="score ~ home + (1 | versus) + (1 | player)",
categorical=["versus", "player"],
)
teams = backtest(players, predict_mixed_effects)
fig = add_backtest(fig, teams, "Mixed effects")
fig
# teams = backtest(players, predict_mixed_effects)
# fig = add_backtest(fig, teams, "Mixed effects")
# fig

# %% [markdown]
"""
Expand Down
File renamed without changes
Loading

0 comments on commit 7734135

Please sign in to comment.