OpenANN  1.1.0
An open source library for artificial neural networks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
agent.cpp File Reference
#include "agent.h"
#include <OpenANN/OpenANN>
#include <OpenANN/optimization/IPOPCMAES.h>
#include <OpenANN/util/AssertionMacros.h>
#include <OpenANN/util/EigenWrapper.h>
#include <OpenANN/io/Logger.h>
#include <OpenANN/util/Random.h>
#include <ctime>
#include <fstream>
#include <stdlib.h>
#include <time.h>

Functions

int agent_init (int num_state_variables, int num_action_variables, int argc, const char *agent_param[])
 
const char * agent_get_name ()
 
Eigen::VectorXd convert (double state[])
 
void convert (const Eigen::VectorXd &action, double *out)
 
int chooseAction (double state_data[], double out_action[])
 
int agent_start (double state_data[], double out_action[])
 
int agent_step (double state_data[], double reward, double out_action[])
 
int agent_end (double reward)
 
void agent_cleanup ()
 

Variables

int num_states = 0
 
int num_actions = 0
 
IPOPCMAES opt
 
Net net
 
double episodeReturn
 
Logger logger (Logger::CONSOLE)
 
int hiddenUnits
 
int parameters
 
double bestReturn
 
Eigen::VectorXd bestParameters
 

Function Documentation

void agent_cleanup ( )
int agent_end ( double  reward)
const char* agent_get_name ( )
int agent_init ( int  num_state_variables,
int  num_action_variables,
int  argc,
const char *  agent_param[] 
)
int agent_start ( double  state_data[],
double  out_action[] 
)
int agent_step ( double  state_data[],
double  reward,
double  out_action[] 
)
int chooseAction ( double  state_data[],
double  out_action[] 
)
Eigen::VectorXd convert ( double  state[])
void convert ( const Eigen::VectorXd &  action,
double *  out 
)

Variable Documentation

Eigen::VectorXd bestParameters
double bestReturn
double episodeReturn
int hiddenUnits
Logger logger(Logger::CONSOLE)
Net net
int num_actions = 0
int num_states = 0
IPOPCMAES opt
int parameters