Skip to content

Commit

Permalink
start with continue policy grad (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJerez committed Oct 17, 2023
1 parent e2cc2df commit 3f922d2
Show file tree
Hide file tree
Showing 5 changed files with 497 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace ndCarpole_0
{
//#define D_TRAIN_AGENT
#define D_TRAIN_AGENT

#define D_USE_VANILLA_POLICY_GRAD
//#define D_USE_PROXIMA_POLICY_GRAD
Expand Down Expand Up @@ -50,15 +50,15 @@ namespace ndCarpole_0
public:

#ifdef D_USE_VANILLA_POLICY_GRAD
class ndCartpoleAgent : public ndBrainAgentDiscretePolicyGrad<m_stateSize, m_actionsSize>
class ndCartpoleAgent : public ndBrainAgentPolicyGrad<m_stateSize, m_actionsSize>
#else
class ndCartpoleAgent : public ndBrainAgentDQN<m_stateSize, m_actionsSize>
#endif
{
public:
#ifdef D_USE_VANILLA_POLICY_GRAD
ndCartpoleAgent(ndSharedPtr<ndBrain>& actor)
:ndBrainAgentDiscretePolicyGrad<m_stateSize, m_actionsSize>(actor)
:ndBrainAgentPolicyGrad<m_stateSize, m_actionsSize>(actor)
,m_model(nullptr)
{
}
Expand Down
Loading

0 comments on commit 3f922d2

Please sign in to comment.