class Hinge
implements CPUCostFunction
import { Hinge } from "https://deno.land/x/netsaur@0.1.2/src/cpu/cost.ts";
Hinge cost function is the standard cost function for multiclass classification.
Methods
cost(yHat: DataTypeArray<T>, y: DataTypeArray<T>)
prime(yHat: number, y: number)