mlpack 3.4.2
Public Member Functions | List of all members
LossVisitor Class Reference

LossVisitor exposes the Loss() method of the given module. More...

#include <loss_visitor.hpp>

Inheritance diagram for LossVisitor:
Inheritance graph
[legend]

Public Member Functions

template<typename LayerType >
double operator() (LayerType *layer) const
 Return the Loss. More...
 
double operator() (MoreTypes layer) const
 

Detailed Description

LossVisitor exposes the Loss() method of the given module.

Definition at line 26 of file loss_visitor.hpp.

Member Function Documentation

◆ operator()() [1/2]

double operator() ( LayerType *  layer) const

Return the Loss.

◆ operator()() [2/2]

double operator() ( MoreTypes  layer) const

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