libeblearngui
ebl::supervised_trainer_gui< Tnet, Tdata, Tlabel > Class Template Reference

#include <ebl_trainer_gui.h>

List of all members.

Public Member Functions

 supervised_trainer_gui (const char *title=NULL, bool scroll=false)
 add scrolling controls if scroll is true.
void display_datasource (supervised_trainer< Tnet, Tdata, Tlabel > &st, labeled_datasource< Tnet, Tdata, Tlabel > &ds, infer_param &infp, unsigned int nh, unsigned int nw, unsigned int h0=0, unsigned int w0=0, double zoom=1.0, int wid=-1, const char *title=NULL, bool scrolling=false)
void display_internals (supervised_trainer< Tnet, Tdata, Tlabel > &st, labeled_datasource< Tnet, Tdata, Tlabel > &ds, infer_param &infp, gd_param &args, unsigned int ninternals, unsigned int h0=0, unsigned int w0=0, double zoom=1.0, int wid=-1, const char *title=NULL)
 displays internal states of the <ninternals> first samples of ds.
void display_correctness (bool incorrect, bool up, supervised_trainer< Tnet, Tdata, Tlabel > &st, labeled_datasource< Tnet, Tdata, Tlabel > &ds, infer_param &infp, unsigned int nh, unsigned int nw, bool print_raw_outputs=false, bool draw_all_jitter=false, unsigned int h0=0, unsigned int w0=0, double zoom=1.0, int wid=-1, const char *title=NULL, bool scrolling=false)
virtual void display_next ()
 scrolling method.
virtual void display_previous ()
 scrolling method.
virtual unsigned int max_pages ()
 scrolling method.
virtual supervised_trainer_gui
< Tnet, Tdata, Tlabel > * 
copy ()
 deep copy (for independent multi-threaded display).

Protected Attributes

supervised_trainer< Tnet,
Tdata, Tlabel > * 
_st
labeled_datasource< Tnet,
Tdata, Tlabel > * 
_ds
labeled_datasource< Tnet,
Tdata, Tlabel > * 
_last_ds
infer_param * _infp
unsigned int _nh
unsigned int _nw
double _zoom
int datasource_wid
int datasource_wid2
int datasource_wid3
int datasource_wid4
int internals_wid
int internals_wid2
int internals_wid3
bool scroll
bool scroll_added
unsigned int pos
labeled_datasource_gui< Tnet,
Tdata, Tlabel > * 
dsgui
string title0
 Main title.
string title1
string title2
string title3
string title4

Detailed Description

template<class Tnet, class Tdata, class Tlabel>
class ebl::supervised_trainer_gui< Tnet, Tdata, Tlabel >

Supervised Trainer gui


Member Function Documentation

template<class Tnet , class Tdata , class Tlabel >
void ebl::supervised_trainer_gui< Tnet, Tdata, Tlabel >::display_correctness ( bool  incorrect,
bool  up,
supervised_trainer< Tnet, Tdata, Tlabel > &  st,
labeled_datasource< Tnet, Tdata, Tlabel > &  ds,
infer_param &  infp,
unsigned int  nh,
unsigned int  nw,
bool  print_raw_outputs = false,
bool  draw_all_jitter = false,
unsigned int  h0 = 0,
unsigned int  w0 = 0,
double  zoom = 1.0,
int  wid = -1,
const char *  title = NULL,
bool  scrolling = false 
)

displays correct or incorrect nh x nw samples of the datasource ds, ordered by decreasing energies. This method assumes correctness has been previously set in datasource by a test call.

Parameters:
incorrectShow incorrect samples if true, correct otherwise.
upIf true, sort starting with lowest energies, highest otherwise.
template<class Tnet , class Tdata , class Tlabel >
void ebl::supervised_trainer_gui< Tnet, Tdata, Tlabel >::display_datasource ( supervised_trainer< Tnet, Tdata, Tlabel > &  st,
labeled_datasource< Tnet, Tdata, Tlabel > &  ds,
infer_param &  infp,
unsigned int  nh,
unsigned int  nw,
unsigned int  h0 = 0,
unsigned int  w0 = 0,
double  zoom = 1.0,
int  wid = -1,
const char *  title = NULL,
bool  scrolling = false 
)

displays nh x nw samples of the datasource ds 3 times: 1- with groundtruth labels 2- with classification answers, correct and wrong 3- samples with wrong answers only


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