Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netsaur/backends/cpu/cost.ts>CPUCostFunction

Powerful machine learning, accelerated by WebGPU
Go to Latest
interface CPUCostFunction
import { type CPUCostFunction } from "https://deno.land/x/netsaur@0.1.5/backends/cpu/cost.ts";

Type Parameters

optional
T extends DataType = DataType

Properties

name: string

Methods

cost(yHat: DataTypeArray<T>, y: DataTypeArray<T>): number

Return the cost associated with an output a and desired output y.

prime(yHat: number, y: number): number

Return the error delta from the output layer.