Module: CooCoo::CostFunctions

Extended by:
FromName
Defined in:
lib/coo-coo/cost_functions.rb

Overview

CostFunctions are used with a Trainer to determine how close a Network is coming to its target. CostFunctions are functions of two variables.

To get a cost function instance use the included FromName#from_name. Then you can #call or #derivative any cost function.

To create a new cost function that can be used with a Trainer, you must call FromName#register and implement the #call and #derivative class methods.

Defined Under Namespace

Classes: Base, CrossEntropy, MeanSquare, SoftMaxCrossEntropy

Method Summary

Methods included from FromName

each, from_name, named_classes, register