Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
|
This Agent class selects edges according to a policy. More...
#include <Agent.h>
Public Member Functions | |
Agent () | |
Default constructor. | |
Agent (Graph &g) | |
Default destructor. More... | |
Episode | getEpisode () |
std::pair< state *, unsigned int > | executePolicy (state *s, Policy &p) |
Public Attributes | |
state | s0 |
The initial state where every episode starts. | |
Policy | lpolicy |
Pointer to the Policy that Agent currently uses. | |
This Agent class selects edges according to a policy.
|
inline |
The member executePolicy selects an edge in state s according to Policy p.
s | Expects a state s as input parameter. |
p | Expects a policy p as input parameter. |
Episode Agent::getEpisode | ( | ) |
This function runs an episode. It relies on s and policy to calculate state-action pairs as well as score.