| Title: | A Minimal S3 Interface to 'caret' Models Without Resampling |
|---|---|
| Description: | Fits any 'caret' model on a matrix/data frame of predictors and a response, with fixed hyperparameters (no cross-validation), and exposes the result through standard S3 methods: predict(), print(), coef(). |
| Authors: | Thierry Moudiki [aut, cre] |
| Maintainer: | Thierry Moudiki <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-10-25 17:04:55 UTC |
| Source: | https://github.com/thierrymoudiki/caretS3 |
Fit a caret model with fixed hyperparameters (no resampling)
caretS3(x, y, method = "glmnet", ..., train_args = list())caretS3(x, y, method = "glmnet", ..., train_args = list())
x |
Matrix or data frame of predictors. |
y |
Response vector (numeric for regression, factor for classification). |
method |
Any model name accepted by |
... |
Hyperparameters for |
train_args |
Named list of extra arguments for |
An object of class "caretS3".
Predict from a caretS3 model
## S3 method for class 'caretS3' predict(object, newx, type = c("raw", "prob"), ...)## S3 method for class 'caretS3' predict(object, newx, type = c("raw", "prob"), ...)
object |
A |
newx |
Matrix or data frame of new predictors, same columns as training. |
type |
"raw" (predictions/classes) or "prob" (class probabilities). |
... |
Unused. |