Commit 14de35c6 authored by Shashank Suhas's avatar Shashank Suhas

Major changes branch. Added .gitignore

parent a6b982c3
...@@ -83,3 +83,4 @@ soccerwindow2-prefix/ ...@@ -83,3 +83,4 @@ soccerwindow2-prefix/
# Logs # Logs
log/ log/
bin/log/ bin/log/
logfile*
...@@ -142,6 +142,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR, ...@@ -142,6 +142,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR,
{ {
// for(int i=0; i<RL_MEMORY_SIZE; i++) // for(int i=0; i<RL_MEMORY_SIZE; i++)
// sa3->FA->weights[i] = sa1->FA->weights[i]; // sa3->FA->weights[i] = sa1->FA->weights[i];
std::cout<<"Copying weights"<<std::endl;
sa3->copyWeights(sa1); sa3->copyWeights(sa1);
sa2 = sa3; sa2 = sa3;
} }
...@@ -163,7 +164,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR, ...@@ -163,7 +164,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR,
sa->update(state, action, reward, discFac); sa->update(state, action, reward, discFac);
} }
if(state_vec[numTMates] >= 0.2 && model_changed_flag == false) // if(state_vec[numTMates] >= 0.2 && model_changed_flag == false)
if(iter_count > 100 && model_changed_flag == false) if(iter_count > 100 && model_changed_flag == false)
{ {
sa = sa2; sa = sa2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment