loss_smooth_res: Smooth Loss A loss function for when you want gradients and...

View source: R/optimisation.R

loss_smooth_resR Documentation

Smooth Loss A loss function for when you want gradients and the residuals are already calculated

Description

Smooth Loss A loss function for when you want gradients and the residuals are already calculated

Usage

loss_smooth_res(
  alpha,
  residuals2,
  epsilon2,
  beta,
  lambda1 = 0,
  lambda2 = 0,
  weight = NULL
)

Arguments

alpha

The vector to calculate loss for

residuals2

Vector of squared residuals

epsilon2

The squared acceptable error

beta

The steepness of the sigmoid

lambda1

The L1 regulariser (default: 0)

lambda2

The L2 regulariser (default: 0)

weight

weight vector (default: NULL)

Value

The loss value


edahelsinki/slise documentation built on Aug. 24, 2023, 11:03 p.m.