get.loss: A function that calculates the loss/cost

View source: R/get_loss.R

get.lossR Documentation

A function that calculates the loss/cost

Description

A function that calculates the loss/cost

Usage

get.loss(y, pred, type)

Arguments

y

The response vector.

pred

The predicted values for the response.

type

A string indicating the type of regression model (linear or binomial).

Value

The loss of the input vectors.


SGPR documentation built on May 29, 2024, 5:27 a.m.