Skip to content

Commit

Permalink
Use Trajectories.jl instead (#632)
Browse files Browse the repository at this point in the history
* sync

* finish agent.jl

* let's call it a day

* simplify code structure

* minimal code structure of RLCore

* BasicDQN now works with the new Trajectories.jl

* rename update! -> optimise! & add EpisodeStyle

* bump RLBase version

* bump version of RLCore

* finish review RLCore

* fix tests in RLCore

* improve BasicDQN

* improve BasicDQN

* fix example tests in RLEnvs

* fix rest environments

* add Experiment

* remove Manifest.toml

* cleanup unnecessary files

* pass tests

* update CI

* fix ci

* try to fix ci

* pass CI

* pass CI

* pass CI
  • Loading branch information
findmyway authored Jun 6, 2022
1 parent 2e1de3e commit c67a604
Show file tree
Hide file tree
Showing 191 changed files with 1,338 additions and 12,740 deletions.
7 changes: 5 additions & 2 deletions .cspell/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
"trilcol",
"mvnormlogpdf",
"mvnormals",
"Optimise"
"Optimise",
"xlabel",
"ylabel",
"optimising"
],
"ignoreWords": [],
"minWordLength": 5,
Expand All @@ -193,4 +196,4 @@
"\\{%.*%\\}", // liquid syntax
"/^\\s*```[\\s\\S]*?^\\s*```/gm" // Another attempt at markdown code blocks. https://github.com/streetsidesoftware/vscode-spell-checker/issues/202#issuecomment-377477473
]
}
}
123 changes: 67 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.test("ReinforcementLearningCore")'
Expand All @@ -90,6 +92,9 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.test("ReinforcementLearningZoo")'
Expand All @@ -103,6 +108,7 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.test("ReinforcementLearningEnvironments")'
Expand All @@ -111,13 +117,13 @@ jobs:
with:
paths: src/ReinforcementLearningDatasets

- name: Test RLDatasets
if: (steps.RLDatasets-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'Integration Test'))
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningDatasets")
Pkg.test("ReinforcementLearningDatasets")'
# - name: Test RLDatasets
# if: (steps.RLDatasets-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'Integration Test'))
# run: |
# julia --color=yes -e '
# using Pkg;
# Pkg.develop(path="src/ReinforcementLearningDatasets")
# Pkg.test("ReinforcementLearningDatasets")'

- uses: marceloprado/has-changed-path@v1
id: RLExperiments-changed
Expand All @@ -129,56 +135,61 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.develop(path=".")
Pkg.develop(path="src/ReinforcementLearningExperiments")
Pkg.build("ReinforcementLearningExperiments")
Pkg.test("ReinforcementLearningExperiments")'
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
- run: python -m pip install --user matplotlib
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- name: Build homepage
run: |
cd docs/homepage
julia --project --color=yes -e '
using Pkg; Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
optimize()' > build.log
- name: Make sure homepage is generated without error
run: |
if grep -1 "Franklin Warning" build.log; then
echo "Franklin reported a warning"
exit 1
else
echo "Franklin did not report a warning"
fi
- name: Build docs
run: |
cd docs
julia --project --color=yes -e '
using Pkg; Pkg.instantiate();
include("make.jl")'
mv build homepage/__site/docs
- name: Deploy to the main repo
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: JuliaReinforcementLearning/JuliaReinforcementLearning.github.io
force_orphan: true
publish_branch: master
publish_dir: ./docs/homepage/__site
# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup python
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# architecture: ${{ matrix.arch }}
# - run: python -m pip install --user matplotlib
# - uses: julia-actions/setup-julia@v1
# with:
# version: '1.6'
# - name: Build homepage
# run: |
# cd docs/homepage
# julia --project --color=yes -e '
# using Pkg; Pkg.instantiate();
# using NodeJS; run(`$(npm_cmd()) install highlight.js`);
# using Franklin;
# optimize()' > build.log

# - name: Make sure homepage is generated without error
# run: |
# if grep -1 "Franklin Warning" build.log; then
# echo "Franklin reported a warning"
# exit 1
# else
# echo "Franklin did not report a warning"
# fi

# - name: Build docs
# run: |
# cd docs
# julia --project --color=yes -e '
# using Pkg; Pkg.instantiate();
# include("make.jl")'
# mv build homepage/__site/docs

# - name: Deploy to the main repo
# uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.event_name == 'push' }}
# with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# external_repository: JuliaReinforcementLearning/JuliaReinforcementLearning.github.io
# force_orphan: true
# publish_branch: master
# publish_dir: ./docs/homepage/__site
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ docs/experiments
# It records a fixed state of all packages used by the project. As such, it should not be
# committed for packages, but should be committed for applications that require a static
# environment.
# Manifest.toml
Manifest.toml

.vscode/*

Expand Down
Loading

0 comments on commit c67a604

Please sign in to comment.