Skip to content

Commit

Permalink
added prune/reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
talegari committed Jun 18, 2024
1 parent 740357c commit bb30689
Show file tree
Hide file tree
Showing 37 changed files with 2,620 additions and 831 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tidyrules
Type: Package
Title: Obtain Rules from Rule Based Models as Tidy Dataframe
Version: 0.2.4
Title: Utilities to Retrieve Rulelists from Model Fits, Filter, Prune, Reorder and Predict on unseen data
Version: 0.2.5
Authors@R: c(
person("Srikanth", "Komala Sheshachala", email = "[email protected]", role = c("aut", "cre")),
person("Amith Kumar", "Ullur Raghavendra", email = "[email protected]", role = c("aut"))
Expand All @@ -22,6 +22,8 @@ Imports:
MetricsWeighted (>= 1.0.3),
cli (>= 3.6.2),
glue (>= 1.7.0),
pheatmap (>= 1.0.12),
proxy (>= 0.4.27),
Suggests:
AmesHousing (>= 0.0.3),
dplyr (>= 0.8),
Expand All @@ -36,7 +38,7 @@ Suggests:
knitr (>= 1.23),
rmarkdown (>= 1.13),
palmerpenguins (>= 0.1.1),
Description: Utility to convert text based summary of rule based models to a rulelist or ruleset dataframe (where each row represents a rule) with related metrics such as support, confidence and lift. Rule based models from these packages are supported: 'C5.0', 'rpart' and 'Cubist'.
Description: Extract rules as a rulelist (a class based on dataframe) along with metrics per rule such as support, confidence, lift, RMSE, IQR. Rulelists can be augmented using validation data, manipulated using standard dataframe operations, rulelists can be used to predict on unseen data, prune them based on some metrics and reoder them to optimize them for a metric. Utilities include manually creating rulesets, exporting a rulelist to SQL syntax and so on.
URL: https://github.com/talegari/tidyrules
BugReports: https://github.com/talegari/tidyrules/issues
License: GPL-3
Expand Down
26 changes: 26 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,65 @@

S3method(as_rulelist,data.frame)
S3method(augment,rulelist)
S3method(calculate,rulelist)
S3method(plot,prune_rulelist)
S3method(plot,rulelist)
S3method(predict,rulelist)
S3method(print,prune_rulelist)
S3method(print,rulelist)
S3method(prune,rulelist)
S3method(reorder,rulelist)
S3method(tidy,C5.0)
S3method(tidy,constparty)
S3method(tidy,cubist)
S3method(tidy,rpart)
export(as_rulelist)
export(augment)
export(calculate)
export(convert_rule_flavor)
export(prune)
export(reorder)
export(set_keys)
export(set_validation_data)
export(tidy)
export(to_sql_case)
importFrom(data.table,":=")
importFrom(generics,augment)
importFrom(generics,calculate)
importFrom(generics,prune)
importFrom(generics,tidy)
importFrom(graphics,abline)
importFrom(graphics,axis)
importFrom(graphics,legend)
importFrom(graphics,lines)
importFrom(magrittr,"%>%")
importFrom(rlang,"%||%")
importFrom(stats,IQR)
importFrom(stats,predict)
importFrom(stats,runif)
importFrom(stats,weighted.mean)
importFrom(tidytable,across)
importFrom(tidytable,all_of)
importFrom(tidytable,arrange)
importFrom(tidytable,bind_cols)
importFrom(tidytable,bind_rows)
importFrom(tidytable,distinct)
importFrom(tidytable,drop_na)
importFrom(tidytable,inner_join)
importFrom(tidytable,left_join)
importFrom(tidytable,mutate)
importFrom(tidytable,n)
importFrom(tidytable,nest)
importFrom(tidytable,pivot_longer)
importFrom(tidytable,pivot_wider)
importFrom(tidytable,pull)
importFrom(tidytable,relocate)
importFrom(tidytable,right_join)
importFrom(tidytable,row_number)
importFrom(tidytable,select)
importFrom(tidytable,slice)
importFrom(tidytable,summarise)
importFrom(tidytable,unnest)
importFrom(utils,data)
importFrom(utils,head)
importFrom(utils,tail)
Loading

0 comments on commit bb30689

Please sign in to comment.