Skip to content

Commit

Permalink
survey
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahBarrett98 committed Mar 7, 2021
1 parent a67fa42 commit f460cdf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 42 deletions.
38 changes: 2 additions & 36 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
## Welcome to GitHub Pages
## What do you think about these robots?

You can use the [editor on GitHub](https://github.com/convergencelab/RealDilemma/edit/main/docs/index.md) to maintain and preview the content for your website in Markdown files.

Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files.

### Markdown

Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for

```markdown
Syntax highlighted code block

# Header 1
## Header 2
### Header 3

- Bulleted
- List

1. Numbered
2. List

**Bold** and _Italic_ and `Code` text

[Link](url) and ![Image](src)
```

For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).

### Jekyll Themes

Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/convergencelab/RealDilemma/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file.

### Support or Contact

Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://support.github.com/contact) and we’ll help you sort it out.
There are four different quick clips to watch, afterwards if you could please answer the indicated questions
2 changes: 1 addition & 1 deletion outputs/actions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"count": "0"}
{"PPO2": ["[0, 0, 3]", "[4, 0, 2]", "[5, 0, 1]", "[0, 0, 2]", "[1, 0, 2]", "[1, 0, 4]", "[4, 0, 0]", "[3, 0, 0]", "[5, 0, 4]", "[3, 0, 2]", "[1, 0, 1]"], "A2C": ["[0, 0, 3]", "[3, 0, 3]", "[0, 0, 1]", "[5, 0, 3]", "[2, 0, 4]", "[1, 0, 2]", "[5, 0, 0]", "[1, 0, 3]", "[0, 0, 0]", "[1, 0, 0]", "[0, 0, 0]"]}
Binary file not shown.
6 changes: 2 additions & 4 deletions src/DRL/gym-pibot/gym_pibot/envs/pibot_env2.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ def _get_state(self):
:return:
"""
return self.PiBot.get_state()
def _record_actions(self):
def _record_actions(self, model_name):
with open(ACTION_FILE, "r") as f:
data = json.load(f)
count = int(data["count"])
data[count] = self.ACTION
data["count"] = count+1
data[model_name] = self.ACTION
with open(ACTION_FILE, "w") as f:
json.dump(data, f)

Expand Down
Binary file modified src/DRL/train/__pycache__/train.cpython-37.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/DRL/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def train(steps, pibot, model, model_name) -> str:
policies[model_name] = fpath
with open(POLICYF, "w") as f:
json.dump(policies, f)
env._record_actions()
env._record_actions(model_name)

return fpath

0 comments on commit f460cdf

Please sign in to comment.