Skip to content

Commit

Permalink
by site
Browse files Browse the repository at this point in the history
  • Loading branch information
khufkens committed Feb 28, 2024
1 parent ad602b4 commit 9650ff2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions vignettes/model_evaluation_VI.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ train <- rsample::training(ml_df_split) |>
test <- rsample::testing(ml_df_split) |>
select(-is_flue_drought)
```

Comparing VI versus fLUE

```{r echo = FALSE, message=FALSE, warning=FALSE}
# read in precompiled model
regression_model <- readRDS(
here::here("data/regression_model_spatial.rds")
Expand All @@ -65,8 +60,11 @@ df <- data.frame(
test,
flue_predicted = test_results
)
```

Comparing VI versus fLUE

```{r echo = FALSE, message=FALSE, warning=FALSE}
df <- df |>
Expand All @@ -87,7 +85,7 @@ df_long <- df |>
)
rsq <- df_long |>
group_by(cluster, index) |>
group_by(cluster, index, site) |>
do({
rsq <- summary(lm(flue ~ value, data = .))$r.squared
Expand Down

0 comments on commit 9650ff2

Please sign in to comment.