Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
14de35c6
Commit
14de35c6
authored
Feb 20, 2021
by
Shashank Suhas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Major changes branch. Added .gitignore
parent
a6b982c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
.gitignore
.gitignore
+1
-0
example/sarsa_offense/high_level_sarsa_agent_changed.cpp
example/sarsa_offense/high_level_sarsa_agent_changed.cpp
+2
-1
No files found.
.gitignore
View file @
14de35c6
...
...
@@ -83,3 +83,4 @@ soccerwindow2-prefix/
# Logs
log/
bin/log/
logfile*
example/sarsa_offense/high_level_sarsa_agent_changed.cpp
View file @
14de35c6
...
...
@@ -142,6 +142,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR,
{
// for(int i=0; i<RL_MEMORY_SIZE; i++)
// sa3->FA->weights[i] = sa1->FA->weights[i];
std
::
cout
<<
"Copying weights"
<<
std
::
endl
;
sa3
->
copyWeights
(
sa1
);
sa2
=
sa3
;
}
...
...
@@ -163,7 +164,7 @@ void offenseAgent(int port, int numTMates, int numEpi, double learnR,
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
)
{
sa
=
sa2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment