Module corgi::cost[][src]

Expand description

Cost functions compute the loss given a target, and are used for the backward pass.

Functions

Creates a cross-entropy loss closure.

Creates a mean square error loss closure.

Type Definitions

A cost function, which computes the loss given a target. The cost function takes in the output as the first argument, and the target as the second.