Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the construction of QLearningAgents easier #72

Open
sofian opened this issue Jul 12, 2014 · 0 comments
Open

Make the construction of QLearningAgents easier #72

sofian opened this issue Jul 12, 2014 · 0 comments
Labels

Comments

@sofian
Copy link
Owner

sofian commented Jul 12, 2014

It is currently quite cumbersome to create a QLearningAgent (and also to free its memory). Quick example of creation code:

  policy           = Q_NEW(QLearningEGreedyPolicy)(EPSILON);
  actionProperties = Q_NEW(ActionProperties)(DIM_ACTION, N_ACTIONS);
  nn               = Q_NEW(NeuralNetwork)(DIM_OBSERVATION+DIM_ACTION, N_HIDDEN, 1, LEARNING_RATE, DECREASE_CONSTANT, WEIGHT_DECAY, true);
  qFunc            = Q_NEW(QFunction)(nn, DIM_OBSERVATION, actionProperties);
  agent            = Q_NEW(QLearningAgent)(qFunc, policy, DIM_OBSERVATION, actionProperties, LAMBDA, GAMMA);

We could at the very implement a set of utilities to automatically generate the neural network with appropriate dimensions.

@sofian sofian added the Feature label Jul 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant