Currently only implemented for Cort models. Compute the loss of the model.
loss(object)
# S4 method for class 'Cort'
loss(object)
the Integrated square error loss of the model
loss,Cort-method
: Method for the class Cort
cop <- Cort(cort::recoveryourself_data[1:10,])
#> Splitting...
#>
#> 1 leaves to split...
#> 2 leaves to split...
#> 3 leaves to split...
#> Enforcing constraints...
#> Done !
loss(cop)
#> [1] -1.797796