DiSMEC++
dismec::ResultStatsGatherer Class Referenceabstract

#include <statistics.h>

Inheritance diagram for dismec::ResultStatsGatherer:
dismec::stats::Tracked anonymous_namespace{statistics.cpp}::DefaultGatherer

Public Member Functions

 ResultStatsGatherer ()
 
virtual ~ResultStatsGatherer ()
 
virtual void record_result (const DenseRealVector &weights, const solvers::MinimizationResult &result)=0
 
virtual void start_label (label_id_t label)=0
 
virtual void start_training (const DenseRealVector &init_weights)=0
 
- Public Member Functions inherited from dismec::stats::Tracked
 Tracked ()
 Default constructor, creates the internal stats::StatisticsCollection. More...
 
void register_stat (const std::string &name, std::unique_ptr< Statistics > stat)
 Registers a tracker for the statistics name. More...
 
std::shared_ptr< StatisticsCollectionget_stats () const
 Gets an ownership-sharing reference to the StatisticsCollection. More...
 

Additional Inherited Members

- Protected Member Functions inherited from dismec::stats::Tracked
 ~Tracked ()
 Non-virtual destructor. Declared protected, so we don't accidentally try to do a polymorphic delete. More...
 
template<class T >
void record (stat_id_t stat, T &&value)
 Record statistics. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
void declare_stat (stat_id_t index, StatisticMetaData meta)
 Declares a new statistics. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
void declare_tag (tag_id_t index, std::string name)
 Declares a new tag. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
template<class... Args>
void set_tag (tag_id_t tag, long value)
 Set value of tag. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
template<class... Args>
auto make_timer (stat_id_t id, Args... args)
 Creates a new ScopeTimer using stats::record_scope_time. More...
 

Detailed Description

Definition at line 20 of file statistics.h.

Constructor & Destructor Documentation

◆ ResultStatsGatherer()

ResultStatsGatherer::ResultStatsGatherer ( )
default

◆ ~ResultStatsGatherer()

ResultStatsGatherer::~ResultStatsGatherer ( )
virtualdefault

Member Function Documentation

◆ record_result()

virtual void dismec::ResultStatsGatherer::record_result ( const DenseRealVector weights,
const solvers::MinimizationResult result 
)
pure virtual

◆ start_label()

virtual void dismec::ResultStatsGatherer::start_label ( label_id_t  label)
pure virtual

◆ start_training()

virtual void dismec::ResultStatsGatherer::start_training ( const DenseRealVector init_weights)
pure virtual

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