Skip to content

Commit

Permalink
unsquish vignette lot
Browse files Browse the repository at this point in the history
  • Loading branch information
wvictor14 committed Feb 1, 2025
1 parent e8d3c1f commit 40d4d84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vignettes/planet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ preds <- x_test %>% predictPreeclampsia()

Inspect the results:

```{r include=FALSE, eval = TRUE}
```{r include=TRUE, eval = TRUE, fig.width = 7}
head(preds)
# join with metadata
Expand Down Expand Up @@ -367,12 +367,16 @@ plot_predictions <- function(df, predicted_class_column) {
) +
theme_minimal()
}
```

```{r, fig.width = 7}
valMeta %>% plot_predictions(PE_Status)
```


if user wishes to use different threshold from 55% probability, as an example 70%

```{r}
```{r, fig.width = 7}
valMeta %>% mutate(
Pred_Class = case_when(
EOPE > 0.7 ~ "EOPE",
Expand Down

0 comments on commit 40d4d84

Please sign in to comment.