Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
task_environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Andriella
task_environment
Commits
1d701876
Commit
1d701876
authored
4 years ago
by
Antonio Andriella
Browse files
Options
Downloads
Patches
Plain Diff
replace Robot with Agent
parent
4dbd425f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cognitive_game_vars.py
+2
-2
2 additions, 2 deletions
cognitive_game_vars.py
episode.py
+5
-5
5 additions, 5 deletions
episode.py
with
7 additions
and
7 deletions
cognitive_game_vars.py
+
2
−
2
View file @
1d701876
...
...
@@ -43,7 +43,7 @@ class Attention(enum.Enum):
name
=
"
attention
"
counter
=
3
class
Robo
t_Assistance
(
enum
.
Enum
):
class
Agen
t_Assistance
(
enum
.
Enum
):
lev_0
=
0
lev_1
=
1
lev_2
=
2
...
...
@@ -53,7 +53,7 @@ class Robot_Assistance(enum.Enum):
name
=
"
robot_assistance
"
counter
=
6
class
Robo
t_Feedback
(
enum
.
Enum
):
class
Agen
t_Feedback
(
enum
.
Enum
):
yes
=
1
no
=
0
name
=
"
robot_feedback
"
...
...
This diff is collapsed.
Click to expand it.
episode.py
+
5
−
5
View file @
1d701876
...
...
@@ -74,8 +74,8 @@ class Episode:
'''
It returns the episodes related to the saved file
:param file:
:param episode: look at
mai
n.py
:param sol_per_pop: look at
mai
n.py
:param episode: look at
simulatio
n.py
:param sol_per_pop: look at
simulatio
n.py
:return: a list of episodes
'''
print
(
"
LOADING...
"
)
...
...
@@ -167,7 +167,7 @@ class Episode:
def
main
():
pass
# file_path = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
BN_G
enerative
M
odel/results/1/episodes.npy"
# file_path = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
bn_g
enerative
_m
odel/results/1/episodes.npy"
# ep = Episode()
# episodes = ep.load_episodes(file_path)
# initial_state = (1, 1, 0)
...
...
@@ -187,8 +187,8 @@ def main():
# task_length, n_max_attempt, timeout=0, n_levels_assistance=6)
# #
# trans_matrix = ep.generate_statistics(env.states, env.action_space, episodes)
# path_trans_matrix_occ = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
BN_G
enerative
M
odel/results/1/trans_matrix_occ.npy"
# path_trans_matrix_prob = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
BN_G
enerative
M
odel/results/1/trans_matrix_prob.npy"
# path_trans_matrix_occ = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
bn_g
enerative
_m
odel/results/1/trans_matrix_occ.npy"
# path_trans_matrix_prob = "/home/aandriella/Documents/Codes/MY_FRAMEWORK/
bn_g
enerative
_m
odel/results/1/trans_matrix_prob.npy"
# terminal_states = [env.point_to_index(state) for state in final_states]
#
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment