ModelOriented / ModelOriented/DALEX

`plot.model_diagnostics()` gives a warning for using deprecated `aes_string()` with ggplot2 >=3.0.0

Open
#582 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

Reprex:

  library(DALEX)

  # Example from Explanatory Model Analysis, 19 Residual-diagnostics Plots, 19.4 Example: apartment-prices data
  # https://ema.drwhy.ai

  # Make randomForest model
  library("randomForest")
  set.seed(72)

  model_apart_rf <- randomForest(m2.price ~ ., data = apartments)

  explain_apart_rf <- DALEX::explain(
    model = model_apart_rf,
    verbose = F,
    data = apartments_test[, -1],
    y = apartments_test$m2.price,
    label = "Random Forest"
  )

  diag_rf <- model_diagnostics(explain_apart_rf)

  # Figure 19.7: Residuals and predicted values of the dependent variable for the random forest model apartments_rf for the apartments_test dataset.
  plot(diag_rf)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning with the supplied R example, starting at the plot(diag_rf) entry point for model_diagnostics. Locate the plotting code that emits the deprecated aes_string() warning and verify the completed change by rerunning the example without that warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.