Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data.table Depends->Imports #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# produced my R CMD facilities
*.Rcheck
*.tar.gz

7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ Description:
Debug your binary classifiers faster and easier!
Depends:
R (>= 3.1),
ggplot2 (>= 2.2),
data.table (>= 1.10),
ggplot2 (>= 2.2)
Imports:
Rcpp (>= 0.12),
data.table (>= 1.10),
grid,
ROCR,
caret,
Expand All @@ -30,4 +29,4 @@ Encoding: UTF-8
BugReports: https://github.com/ambiata/classifierplots/issues
URL: https://github.com/ambiata/classifierplots
LazyData: true
RoxygenNote: 5.0.1
RoxygenNote: 6.1.1
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ export(propensity_plot)
export(recall_plot)
export(roc_plot)
export(sigmoid)
import(data.table)
import(ggplot2)
importFrom(ROCR,performance)
importFrom(ROCR,prediction)
importFrom(caret,createResample)
importFrom(data.table,data.table)
importFrom(data.table,setkey)
importFrom(ggplot2,ggproto)
importFrom(grDevices,dev.new)
importFrom(grDevices,dev.off)
Expand Down
6 changes: 5 additions & 1 deletion R/classifier_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ NULL
#' @description Produce a suit of classifier diagnostic plots
#' @param test.y List of know labels on the test set
#' @param pred.prob List of probability predictions on the test set
#' @import data.table ggplot2
#' @import ggplot2
#' @importFrom data.table data.table setkey
#' @importFrom gridExtra grid.arrange
#' @importFrom ROCR performance
#' @importFrom ROCR prediction
Expand All @@ -22,6 +23,9 @@ classifierplots <- function(test.y, pred.prob) {
produce_classifier_plots(test.y, pred.prob, show=T)
}

.I = .N = NULL
`:=` = function(...) NULL

#' @title classifierplots_folder
#' @description Produce a suit of classifier diagnostic plots, saving to disk.
#' @param test.y List of know labels on the test set
Expand Down
1 change: 0 additions & 1 deletion man/accuracy_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/calculate_auc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/calibration_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions man/classifierplots.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/classifierplots_folder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/density_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/example_predictions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/lift_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/notation_key_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/positives_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/precision_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/propensity_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/recall_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/roc_plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/sigmoid.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.