-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev dagger #88
Open
vabdollahi
wants to merge
66
commits into
main
Choose a base branch
from
dev_dagger
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev dagger #88
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
d949a1c
Single python entry point & hydra based configuration
cloderic 68953eb
Introducing DQN
cloderic 4212224
Add support for petting zoo classic environment
cloderic 757cf38
Self play and HILL DQN training for connect four
cloderic 9219e00
Update readme with missing dependencies
cloderic 4cb7598
Fix issue in the mountain car bc experiment conf
cloderic da28604
Fix bug for linux
joshair 079c69f
Using cogment 2.5.0
cloderic 2a6fc1a
add debugger for docs in the next branch (#82)
lhnguyen102 c9e32de
Pytorch multiproc fix (#81)
joshair 36d0489
fix SimpleQueue issue (#83)
saikrishna-1996 282578c
fix log_metric bug (#86)
vabdollahi 1556b8d
Upgrading Cogment and Gym (#87)
cloderic 0fe5fe1
bootstrap dagger
vabdollahi fe88dfa
adding SimpleA2CModel as the teacher model
vabdollahi b22af88
adding learner model
vabdollahi 5c9da8b
dagger algorithm
vabdollahi 655402e
adding rewards to the metrics
vabdollahi c049822
some linting
vabdollahi eee7868
some cleanup
vabdollahi fbf9f6b
fix the observation bug
vabdollahi 11950c9
renaming to student
vabdollahi 3c90ce7
rename - more
vabdollahi 9f25f18
using SimpleA2CActor as a teacher
vabdollahi 4824163
separating the two phases of dagger
vabdollahi 887e70d
removing
vabdollahi 27ae637
lint
vabdollahi 2eeacd7
Merge branch 'next' into dev_dagger
vabdollahi d0857b2
iterate for mlp training
vabdollahi 88a8537
Using one episode as a sample
vabdollahi b979d83
removing done
vabdollahi 3f43800
adding iterations
vabdollahi 5562e4f
some config changes
vabdollahi ee97ec0
adding some mlflow info
vabdollahi 338e3fb
updating readme
vabdollahi 2e9302a
some code review changes
vabdollahi 35cc9c1
storing student actions
vabdollahi edd6546
Adding linear schedule for choosing between teacher and student actions
vabdollahi 2f813fc
Dev ppo (#91)
lhnguyen102 aed3e1b
fixe bugs in gyms (#98)
lhnguyen102 a8f8220
Hot fix (#100)
lhnguyen102 0e5a90a
bootstrap dagger
vabdollahi 2e5fcc0
adding SimpleA2CModel as the teacher model
vabdollahi 1c14ba5
adding learner model
vabdollahi fdfbcd5
dagger algorithm
vabdollahi 8e44d6c
adding rewards to the metrics
vabdollahi a536f33
some linting
vabdollahi 176c9db
some cleanup
vabdollahi ca08817
fix the observation bug
vabdollahi 5fc1855
renaming to student
vabdollahi bb9d79e
rename - more
vabdollahi 4368c9b
using SimpleA2CActor as a teacher
vabdollahi 22b5725
separating the two phases of dagger
vabdollahi 8d80c5c
removing
vabdollahi 42de922
lint
vabdollahi 0994797
iterate for mlp training
vabdollahi 1b45591
Using one episode as a sample
vabdollahi 32680c5
removing done
vabdollahi 2bb3370
adding iterations
vabdollahi eca286b
some config changes
vabdollahi c3090d0
adding some mlflow info
vabdollahi 34c0068
updating readme
vabdollahi d022a14
some code review changes
vabdollahi bc22394
storing student actions
vabdollahi 83347a4
Adding linear schedule for choosing between teacher and student actions
vabdollahi 770b48c
Merge branch 'dev_dagger' of https://github.com/cogment/cogment-verse…
vabdollahi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
ignore: | ||
- "?eggs" | ||
- "**/__pycache__" | ||
- "**/.venv" | ||
- "**/cogment_*.yaml" | ||
- "**/_old" | ||
- "**/*_pb2*.py" | ||
- "**/*.pb.go" | ||
- "**/*_pb*.js" | ||
|
@@ -12,12 +10,8 @@ ignore: | |
- "**/CogSettings.d.ts" | ||
- "**/CogSettings.js" | ||
- "**/CogTypes.d.ts" | ||
- "**/third_party" | ||
- "*/cogment/api" | ||
- "**/htmlcov" | ||
- "web_client/node_modules" | ||
- "web_client/build" | ||
- "**/pybullet_driving_env/*" | ||
- "**/node_modules" | ||
- "**/build" | ||
license: | ||
CopyrightYear: 2021 | ||
CopyrightYear: 2022 | ||
Author: "AI Redefined Inc. <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,50 @@ | ||
stages: | ||
- lint | ||
- test | ||
|
||
.base: | ||
image: python:3.9 | ||
variables: | ||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
NPM_CACHE_DIR: "$CI_PROJECT_DIR/.cache/npm" | ||
before_script: | ||
- mkdir -p ${PIP_CACHE_DIR} | ||
- mkdir -p ${NPM_CACHE_DIR} | ||
# Installation instructions from https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions | ||
- curl -fsSL https://deb.nodesource.com/setup_14.x | bash - | ||
- apt-get update && apt-get install -y software-properties-common && apt-add-repository non-free && apt-get update | ||
- apt-get install -y nodejs swig unrar python3-opencv | ||
- pip install virtualenv | ||
- npm config set cache ${NPM_CACHE_DIR} --global | ||
- apt-get update | ||
- apt-get install -y swig python3-opencv | ||
- python -m venv .venv | ||
- source .venv/bin/activate | ||
- pip install -r requirements.txt | ||
cache: | ||
# pip's cache | ||
- paths: | ||
- .cache/pip | ||
- "**/.venv" | ||
# npm's cache | ||
# .venv | ||
- key: | ||
files: | ||
- web_client/package-lock.json | ||
- requirements.txt | ||
paths: | ||
- .cache/npm/ | ||
# atari roms cache | ||
- key: | ||
files: | ||
- run.sh | ||
- environment/requirements.txr | ||
paths: | ||
- environment/.atari_roms | ||
- .venv | ||
|
||
black: | ||
stage: lint | ||
extends: .base | ||
script: | ||
- black --check --diff . | ||
|
||
build_and_test: | ||
pylint: | ||
stage: lint | ||
extends: .base | ||
script: | ||
- ./run.sh build | ||
- ./run.sh lint | ||
- ./run.sh test | ||
- pylint --recursive=y . | ||
|
||
apache_licenses_check: | ||
stage: lint | ||
image: registry.gitlab.com/ai-r/apache-license-checker:latest | ||
script: | ||
- apache-license-checker | ||
|
||
pytest: | ||
stage: test | ||
extends: .base | ||
script: | ||
- python -m pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a dedicated "page" for DAGGER (in docs/results) that have this exact content and maybe some further details and training examples.