Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine 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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
13bb5d7b
Commit
13bb5d7b
authored
5 months ago
by
Christoph Kowalski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed minor representation issues
parent
bb93cbab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!110
V1.2.0 changes
,
!109
SB3 RL with Hydra
Pipeline
#61077
passed
5 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cooperative_cuisine/reinforcement_learning/obs_converter/advanced_converter_int.py
+3
-4
3 additions, 4 deletions
...orcement_learning/obs_converter/advanced_converter_int.py
with
3 additions
and
4 deletions
cooperative_cuisine/reinforcement_learning/obs_converter/advanced_converter_int.py
+
3
−
4
View file @
13bb5d7b
...
...
@@ -101,7 +101,6 @@ class AdvancedStateConverterInt(StateToObservationConverter):
for
free_idx
in
grid_idxs
:
grid
[
free_idx
[
0
]][
free_idx
[
1
]].
append
(
self
.
counter_list
.
index
(
"
Empty
"
))
grid
[
free_idx
[
0
]][
free_idx
[
1
]].
append
(
self
.
counter_list
.
index
(
"
Empty
"
))
return
np
.
array
(
grid
)
def
vectorize_item
(
self
,
item
,
item_list
):
...
...
@@ -109,7 +108,7 @@ class AdvancedStateConverterInt(StateToObservationConverter):
item_name
=
"
None
"
elif
isinstance
(
item
,
deque
):
if
len
(
item
)
>
0
:
item
=
item
[
0
]
item
=
item
[
-
1
]
item_name
=
item
.
name
else
:
item
=
None
...
...
@@ -126,7 +125,7 @@ class AdvancedStateConverterInt(StateToObservationConverter):
print
(
"
Ohohoho Percentage kann 100 werden
"
)
time
.
sleep
(
20
)
return
"
Abort
"
encoding
+=
item
.
progress_percentage
encoding
+=
int
(
item
.
progress_percentage
*
100
)
encoding
*=
100
else
:
encoding
*=
100
...
...
@@ -141,7 +140,7 @@ class AdvancedStateConverterInt(StateToObservationConverter):
for
item
in
containing_items
:
encoding
+=
item
encoding
*=
100
return
encoding
/
100
return
encoding
@staticmethod
def
vectorize_counter
(
counter
,
counter_list
):
...
...
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