Skip to content

Commit

Permalink
fixed pkgdown and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Jul 30, 2020
1 parent bcfb15d commit fafaa80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'devel'}
- {os: macOS-latest, r: '4.0'}
- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: '4.0'}
- {os: windows-latest, r: '3.6'}
- {os: ubuntu-16.04, r: '4.0', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
Expand Down
3 changes: 3 additions & 0 deletions R/plot_model_performance.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ plot.model_performance_boxplot <- function(df, show_outliers, loss_function, nla

plot.model_performance_histogram <- function(df, nlabels) {
observed <- predicted <- label <- NULL
# if factor, then levels shall be reversed
if (length(levels(df$label)) > 1) levels(df$label) <- rev(levels(df$label))

ggplot(df, aes(observed - predicted, fill = label)) +
geom_histogram(bins = 100) +
facet_wrap(~label, ncol = 1) +
Expand Down
6 changes: 3 additions & 3 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ reference:
- plot.model_profile
- print.model_diagnostics
- plot.model_diagnostics
- variable_effect
- print.description
- print.model_info
- title: Model performance measures
desc: Model performance measures for packages from the DrWhy.AI universe
contents:
Expand All @@ -51,16 +52,15 @@ reference:
contents:
- update_label
- update_data
- print.description
- yhat
- model_info
- print.model_info
- install_dependencies
- colors_discrete_drwhy
- colors_diverging_drwhy
- colors_breakdown_drwhy
- theme_drwhy
- theme_drwhy_vertical
- variable_effect
- title: Datasets
desc: Datasets used in Examples and Vignettes
contents:
Expand Down

0 comments on commit fafaa80

Please sign in to comment.