libeblearn
ebl::l2_energy< T, Tstate > Class Template Reference

#include <ebl_energy.h>

Inheritance diagram for ebl::l2_energy< T, Tstate >:
ebl::ebm_2< Tstate > ebl::module ebl::scalerclass_energy< T, Tstate >

List of all members.

Public Member Functions

 l2_energy (const char *name="l2_energy")
virtual void fprop (Tstate &in1, Tstate &in2, Tstate &energy)
 fprop: compute output from input
virtual void bprop (Tstate &in1, Tstate &in2, Tstate &energy)
 bprop: compute gradient wrt inputs, given gradient wrt output
virtual void bbprop (Tstate &in1, Tstate &in2, Tstate &energy)
 bprop: compute diaghession wrt inputs, given diaghessian wrt output
virtual void infer2_copy (Tstate &i1, Tstate &i2, Tstate &energy)
virtual std::string describe ()
 Returns a string describing this module and its parameters.

Protected Attributes

idx< T > tmp
 Buffer for temporary operations.

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::l2_energy< T, Tstate >

A generalized euclidean distance energy between inputs, i.e. the energy equals: .5 * || X - Y ||^2


The documentation for this class was generated from the following files: