get.loss {SGPR}R 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.


[Package SGPR version 0.1.2 Index]