Learn R Programming

unifiedml (version 0.2.0)

print.model_adapter: Print Method for Model Adapters

Description

Prints a short summary of a model_adapter object, including the signatures of its fit and predict functions.

Usage

# S3 method for model_adapter
print(x, ...)

Value

Invisibly returns x.

Arguments

x

An object of class model_adapter.

...

Further arguments passed to or from other methods (ignored).

Examples

Run this code
adapter <- list(
  fit = function(data, y) NULL,
  predict = function(newdata) numeric(0)
)
class(adapter) <- "model_adapter"
print(adapter)

Run the code above in your browser using DataLab