Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | List of all members
singa::Metric Class Reference

Performance mtrics. More...

#include <common.h>

Public Member Functions

 Metric (const std::string &str)
 
void Add (const std::string &name, float value)
 Add one metric. More...
 
void Add (const std::string &name, float value, int count)
 
void Reset ()
 reset all metric counter and value to 0
 
std::string ToLogString () const
 Generate a one-line string for logging.
 
std::string ToString () const
 Serialize the object into a string.
 
void ParseFrom (const std::string &msg)
 Parse the metric from a string.
 

Detailed Description

Performance mtrics.

Member Function Documentation

void singa::Metric::Add ( const std::string &  name,
float  value 
)

Add one metric.

If the metric exist, the aggregate. Otherwise create a new entry for it.

Parameters
namemetric name, e.g., 'loss'
valuemetric value

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