Generic function to coerce objects into loss objects.

as_loss(x)

# S3 method for character
as_loss(x)

# S3 method for ruta_loss
as_loss(x)

Arguments

x

Object to be converted into a loss

Value

A "ruta_loss" construct