Closed lgreski closed 7 years ago
It is not exposed to the user (this is not uncommon). Use the namespace to see it:
> args(caret:::train.default)
function (x, y, method = "rf", preProcess = NULL, ..., weights = NULL,
metric = ifelse(is.factor(y), "Accuracy", "RMSE"), maximize = ifelse(metric %in%
c("RMSE", "logLoss"), FALSE, TRUE), trControl = trainControl(),
tuneGrid = NULL, tuneLength = ifelse(trControl$method ==
"none", 1, 3))
NULL
> methods("train")
[1] train.default* train.formula* train.recipe*
see '?methods' for accessing help and source code
So the object was changed to remove its visibility to the user between release 6.0-71 and 6.0-76. Thanks for directing me to the namespace. I also alerted the staff at Johns Hopkins to update their lecture content to reference the namespace.
regards,
Len
If you are making a feature request or starting a discussion, you can ignore everything below and go wild =D
If you are filing a bug, make sure these boxes are checked before submitting your issue— thank you!
update.packages(oldPkgs="caret", ask=FALSE)
sessionInfo()
Minimal, reproducible example:
Code generates an object not found error in caret_6.0-76, works in caret_6.0-71. This is from a lecture in the Johns Hopkins University Practical Machine Learning course, and when students try to reproduce the lecture code, it no longer produces the expected result.
Minimal, runnable code:
Session Info:
Code works as expected in earlier version of caret:
regards,
Len