Skip to content

Commit

Permalink
docs: update to reflect #f2d8f21
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaburg1 committed Jan 13, 2021
1 parent affcec5 commit c9ed867
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,18 @@ iris %>% filter(eval(str2expression(out$rule[3]))) %>% str
out <- tidy_tree(model, rule_as_text = F)

out$rule[3]
#> $`8`
#> [[1]]
#> [1] "Species = versicolor,virginica" "Sepal.Length < 6.35"
#> [3] "Sepal.Length < 5.55"

# Both
out <- tidy_tree(model, rule_as_text = F, eval_ready = T)

out$rule[3]
#> [1] "Species %in% c(\"versicolor\", \"virginica\") & Sepal.Length < 6.35 & Sepal.Length < 5.55"
#> [[1]]
#> [1] "Species %in% c(\"versicolor\", \"virginica\")"
#> [2] "Sepal.Length < 6.35"
#> [3] "Sepal.Length < 5.55"
```

## Node predictions
Expand Down

0 comments on commit c9ed867

Please sign in to comment.