Class: CooCoo::CostFunctions::CrossEntropy
- Defined in:
- lib/coo-coo/cost_functions.rb
Overview
Implements the log cross-entropy cost function that is used with ActivationFunctions::SoftMax and ActivationFunctions::ShiftedSoftMax. This calls Math.log
on the network’s output and multiples that by the target. Therefore good target values are 0...1
.