Prints a short summary of a model_adapter object, including the
signatures of its fit and predict functions.
# S3 method for class 'model_adapter'
print(x, ...)
Arguments
- x
An object of class model_adapter.
- ...
Further arguments passed to or from other methods (ignored).
Value
Invisibly returns x.
Examples
adapter <- list(
fit = function(data, y) NULL,
predict = function(newdata) numeric(0)
)
class(adapter) <- "model_adapter"
print(adapter)
#> Model Interface Adapter
#> fit: function(data, y)
#> predict: function(newdata)