Skip to content
Snippets Groups Projects
Commit 3694457e authored by Ramsha Narmeen's avatar Ramsha Narmeen
Browse files

Upload New File

parent 26b97adb
Branches main
No related tags found
No related merge requests found
function actor = update_actor(actor, ~, batch, actor_lr, ~, ~,~)
states = cat(1, batch.state);
action = cat(1, batch.action);
%reward = cat(1, batch.reward);
%next_states = cat(1, batch.next_state);
actor_gradients = gradient_Actor(actor, dlarray(states,'BC'),action);
averageGrad = [];
averageSqGrad = [];
actor = adamupdate(actor, actor_gradients,averageGrad,averageSqGrad,1000,actor_lr);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment