Skip to content

Commit

Permalink
filtering example
Browse files Browse the repository at this point in the history
  • Loading branch information
agosiewska committed Dec 18, 2018
1 parent 5da4273 commit 098c450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ plot(ive_rf)
```
# filtered
ive_rf_filtered <- dplyr::filter(ive_rf, `_ylevel_` =="fired")
class(ive_rf_filtered) <- c("individual_variable_effect", "data.frame")
plot(ive_rf_filtered)
shapper:::plot.individual_variable_effect(ive_rf_filtered)
```

<img src="materials/classification_plot_filtered.png" width="100%" />
Expand Down
3 changes: 1 addition & 2 deletions vignettes/shapper_classification.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,5 @@ plot(ive_rf, ive_tree, id = c(1,2), show_predcited = FALSE,

```{r}
ive_rf_filtered <- dplyr::filter(ive_rf, `_ylevel_` =="fired")
class(ive_rf_filtered) <- c("individual_variable_effect", "data.frame")
plot(ive_rf_filtered)
shapper:::plot.individual_variable_effect(ive_rf_filtered)
```

0 comments on commit 098c450

Please sign in to comment.