Skip to content

Commit

Permalink
Drop devmode, prepare RL.jl v0.11 for release (#1035)
Browse files Browse the repository at this point in the history
* Drop devmode, prepare RL.jl v0.11 for release

* Add RLFarm to project, drop RLZoo from umbrella package

* Update LICENSE

---------

Co-authored-by: Jeremiah Lewis <--get>
  • Loading branch information
jeremiahpslewis authored Mar 11, 2024
1 parent a6623a8 commit 4f96c51
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 70 deletions.
27 changes: 0 additions & 27 deletions Project.dev.toml

This file was deleted.

3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name = "ReinforcementLearning"
uuid = "158674fc-8238-5cab-b5ba-03dfc80d1318"
authors = ["Johanni Brea <[email protected]>", "Jun Tian <[email protected]>"]
version = "0.11.0-dev"
version = "0.11.0"

[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
ReinforcementLearningBase = "e575027e-6cd6-5018-9292-cdc6200d2b44"
ReinforcementLearningCore = "de1b191a-4ae0-4afa-a27b-92d07f46b2d6"
ReinforcementLearningEnvironments = "25e41dd2-4622-11e9-1641-f1adca772921"
ReinforcementLearningZoo = "d607f57d-ee1e-4ba7-bcf2-7734c1e31854"

[compat]
Reexport = "0.2, 1"
Expand Down
3 changes: 0 additions & 3 deletions src/ReinforcementLearning.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ const RL = ReinforcementLearning

using Reexport

include("devmode.jl")

@reexport using ReinforcementLearningBase
@reexport using ReinforcementLearningCore
@reexport using ReinforcementLearningEnvironments
@reexport using ReinforcementLearningZoo

end
19 changes: 19 additions & 0 deletions src/ReinforcementLearningFarm/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2024 Jeremiah Lewis <[email protected]> and Henri Dehaybe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions src/ReinforcementLearningFarm/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "ReinforcementLearningFarm"
uuid = "14eff660-7080-4cec-bba2-cfb12cd77ac3"
version = "0.1.0"

[deps]
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
ReinforcementLearningBase = "e575027e-6cd6-5018-9292-cdc6200d2b44"
ReinforcementLearningCore = "de1b191a-4ae0-4afa-a27b-92d07f46b2d6"

[compat]
ReinforcementLearningBase = "0.12"
ReinforcementLearningCore = "0.14"
julia = "1.9"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = []
5 changes: 5 additions & 0 deletions src/ReinforcementLearningFarm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ReinforcementLearningFarm.jl

This project contains updated, tested algorithms compatible with ReinforcementLearning.jl v0.11+.

Unlike ReinforcementLearningZoo, the algorithms here have been domesticated.
8 changes: 8 additions & 0 deletions src/ReinforcementLearningFarm/src/ReinforcementLearningZoo.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module ReinforcementLearningFarm

using ReinforcementLearningBase
using ReinforcementLearningCore
const RLFarm = ReinforcementLearningFarm
export RLFarm

end # module
17 changes: 17 additions & 0 deletions src/ReinforcementLearningFarm/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using UUIDs
using Preferences

if Sys.isapple()
flux_uuid = UUID("587475ba-b771-5e3f-ad9e-33799f191a9c")
set_preferences!(flux_uuid, "gpu_backend" => "Metal")

using Metal
else
using CUDA, cuDNN
CUDA.allowscalar(false)
end

using Test
@testset "ReinforcementLearningZoo.jl" begin

end
2 changes: 2 additions & 0 deletions src/ReinforcementLearningZoo/src/ReinforcementLearningZoo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const RLZoo = ReinforcementLearningZoo
export RLZoo
import MLUtils

@warn "ReinforcementLearningZoo is deprecated! Components compatible with ReinforcementLearning v0.11+ are available in ReinforcementLearningFarm."

include("algorithms/algorithms.jl")
# include("hooks/hooks.jl") # TotalBatchRewardPerEpisode is broken, need to ensure vector copy works!

Expand Down
38 changes: 0 additions & 38 deletions src/devmode.jl

This file was deleted.

0 comments on commit 4f96c51

Please sign in to comment.