Hi,
I have this problem:

Error in methods::getMethod(name, eval(call$signature), where = env) :
no method found for function 'predict_inputs' and signature DecisionTreeClassifier Calls: suppressPackageStartupMessages ... object_from_call -> parser_setMethod -> <Anonymous>


Code:
#' An S4 method to predict inputs.
#' @param object DecisionTree object
#' @param ... This parameter is included for compatibility reasons.
setGeneric("predict_inputs", function(object,...)
  standardGeneric("predict_inputs") )

#' @title Predict inputs Decision Tree
#' @description Function to predict one input in Decision Tree
#' @param object DecisionTree object
#' @param inputs inputs to be predicted
#' @param type type prediction, class or prob
#' @export
setMethod(f="predict_inputs",
          signature="DecisionTreeClassifier",
          definition=function(object,inputs,type = "class")
          {
................


What is the problem?
Thanks

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to