Skip to content

Commit

Permalink
do not evaluate model.evaluation.plot calls, since it breaks the CI f…
Browse files Browse the repository at this point in the history
…or some reason.
  • Loading branch information
jakob-wirbel committed Jan 31, 2020
1 parent de361a6 commit 832af2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
28 changes: 1 addition & 27 deletions vignettes/SIAMCAT_holdout.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -208,33 +208,7 @@ model.evaluation.plot('FR-CRC'=siamcat.fr,
colours=c('dimgrey', 'orange'))
```


```{r eval_plot_hidden, fig.width = 6, fig.asp=1, fig.align="left", echo=FALSE}
args <- list('FR-CRC'=siamcat.fr, 'CN-CRC'=siamcat.cn)
colours=c('dimgrey', 'orange')
plot(NULL, xlim = c(0, 1), ylim = c(0, 1),
xlab = "False positive rate", ylab = "True positive rate",
type = "n")
title(paste("ROC curve for the model", sep = " "))
abline(a = 0, b = 1, lty = 3)
legend.val <- c()
for (i in 1:length(args)) {
legend.val <- c(legend.val,
as.numeric(SIAMCAT:::single.roc.plot(args[[i]], colours[i],
show.all=FALSE, verbose=0)))
}
legend('bottomright',
legend= paste0(names(args),
' AUC: ' ,
format(legend.val, digits=3)),
col=colours, lty=1, lwd=2, cex=0.8, y.intersp=1.5)
```
![](./eval_plot_holdout.png)

# Session Info

Expand Down
4 changes: 3 additions & 1 deletion vignettes/SIAMCAT_vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,12 @@ To plot the results of the evaluation, we can use the function
`model.evaluation.plot`, which produces a pdf-file showing the ROC and PR
Curves for the different resamples runs as well as the mean ROC and PR Curve.

```{r eval_plot, fig.height=6, fig.width=6, fig.align='left', message=FALSE}
```{r eval_plot, eval=FALSE}
model.evaluation.plot(siamcat)
```

![](./eval_plot.png)

## Interpretation Plot

The final plot produced by `SIAMCAT` is the model interpretation plot, created
Expand Down
Binary file added vignettes/eval_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/eval_plot_holdout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 832af2a

Please sign in to comment.