Skip to main content
Module

x/netsaur/packages/core/mod.ts>Cost

Powerful machine learning, accelerated by WebGPU
Latest
enum Cost
Re-export
import { Cost } from "https://deno.land/x/netsaur@0.4.0-patch/packages/core/mod.ts";

Members

BinCrossEntropy = "bincrossentropy"

Cross entropy cost function is the standard cost function for binary classification.

CrossEntropy = "crossentropy"

Cross entropy cost function is the standard cost function for classification.

Hinge = "hinge"

Hinge cost function is the standard cost function for multi-class classification.

Huber = "huber"

Huber is a cost function for regression and is less sensitive to outliers than the squared error loss

MAE = "mae"

Mean absolute error cost function is a popular cost function for regression.

MSE = "mse"

Mean squared error cost function is the standard cost function for regression.

SmoothHinge = "smoothhinge"

Smoothed hinge is a variant of the Huber cost function used for binary classification. It is a smoothed version of hinge and is more robust to outliers.

Tukey = "tukey"

Tukey's biweight loss is a robust cost function for regression problems.