Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/web.ts>Cost

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
enum Cost
Re-export
import { Cost } from "https://deno.land/x/netsaur@0.4.2/web.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.