Skip to content
Merged
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
5 changes: 1 addition & 4 deletions R/machinelearning.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,10 @@ parametersEqual <- function(recipient, donor) {

#' OrganiseCategoricalPredictors
#'
#' Organize information about categorical predictors in the model
#' Organize information about categorical predictors in the model.
#' @param input.model The machine learning model.
#' @param all.combo.boxes The selection of predictor values.
#' @export
#' @noRd
OrganiseCategoricalPredictors <- function(input.model, all.combo.boxes) {
estimation.data.template <- input.model$estimation.data.template
all.variable.names <- names(estimation.data.template)
Expand Down Expand Up @@ -219,7 +218,6 @@ OrganiseCategoricalPredictors <- function(input.model, all.combo.boxes) {
#' @param is.numeric A logical value indicating if the outcome is numeric.
#' @importFrom utils getS3method
#' @export
#' @noRd
PredictOutcome <- function(input.model, DF, is.numeric) {
vector.or.class <- if (is.numeric) "vector" else "class"
is.cart <- inherits(input.model, "CART")
Expand Down Expand Up @@ -255,7 +253,6 @@ PredictOutcome <- function(input.model, DF, is.numeric) {
#' @param DF The data frame containing the predictor values.
#' @importFrom utils getS3method
#' @export
#' @noRd
PredictProbabilities <- function(input.model, DF) {
model.classes <- class(input.model)
if ("SupportVectorMachine" %in% model.classes) {
Expand Down
16 changes: 16 additions & 0 deletions man/OrganiseCategoricalPredictors.Rd

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

18 changes: 18 additions & 0 deletions man/PredictOutcome.Rd

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

16 changes: 16 additions & 0 deletions man/PredictProbabilities.Rd

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

Loading