Learn R Programming

SGPR (version 0.1.2)

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

Description

A function that calculates the loss/cost

Usage

get.loss(y, pred, type)

Value

The loss of the input vectors.

Arguments

y

The response vector.

pred

The predicted values for the response.

type

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