|
virtual const Reddit::event_container * | get_event_list (const dynet::ParameterMap ¶ms, Construct &construct) |
|
| ~Output_Reddit_Posts (void) |
|
void | msg_out (const Social_Media_no_followers::media_event &msg, const unsigned int current_timestep) |
|
void | process (unsigned int t) |
|
| Output_Reddit_Posts (const dynet::ParameterMap ¶ms, Construct &construct) |
|
| Output (const dynet::ParameterMap ¶ms, Construct &construct) |
| Sets up the output to only record during certain timeperiods. Allows the usage of should_process.
|
|
| Output () |
| Creates an output that does not depend on time. Output::should_process should not be called when using this constructor.
|
|
bool | should_process (int t) |
| Given the current time index, returns true if the current time period is flagged to be processed.
|
|
virtual | ~Output () |
| Virtual Deconstructor. More...
|
|
virtual std::vector< int > | get_output_timeperiods (const dynet::ParameterMap ¶ms, Construct &construct) |
| Creates a vector of indexes that indicate in which timeperiod output should be processed. The parameter "timeperiods" in params controls this value. "all" will fill the entire the array with -1 followed by all timeperiods. "last" will set it to only contain the last time index. "initial" will set it to only contain -1. If it is none of these, the param is tokenized with a comma delimiter and converts the tokens to integers. Returned vector should always be ordered.
|
|
virtual void | process (unsigned int t)=0 |
| Called after each model has executed. More...
|
|
Outputs the contents of the event_list to a csv file, with fields similar to Reddit data.