Skip to content

Commit 4f96c51

Browse files
Drop devmode, prepare RL.jl v0.11 for release (#1035)
* 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>
1 parent a6623a8 commit 4f96c51

10 files changed

Lines changed: 71 additions & 70 deletions

File tree

Project.dev.toml

Lines changed: 0 additions & 27 deletions
This file was deleted.

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name = "ReinforcementLearning"
22
uuid = "158674fc-8238-5cab-b5ba-03dfc80d1318"
33
authors = ["Johanni Brea <jbrea@users.noreply.github.com>", "Jun Tian <tianjun.cpp@gmail.com>"]
4-
version = "0.11.0-dev"
4+
version = "0.11.0"
55

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

1413
[compat]
1514
Reexport = "0.2, 1"

src/ReinforcementLearning.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ const RL = ReinforcementLearning
55

66
using Reexport
77

8-
include("devmode.jl")
9-
108
@reexport using ReinforcementLearningBase
119
@reexport using ReinforcementLearningCore
1210
@reexport using ReinforcementLearningEnvironments
13-
@reexport using ReinforcementLearningZoo
1411

1512
end
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2024 Jeremiah Lewis <hello@jeremiahlewis.me> and Henri Dehaybe
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name = "ReinforcementLearningFarm"
2+
uuid = "14eff660-7080-4cec-bba2-cfb12cd77ac3"
3+
version = "0.1.0"
4+
5+
[deps]
6+
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
7+
ReinforcementLearningBase = "e575027e-6cd6-5018-9292-cdc6200d2b44"
8+
ReinforcementLearningCore = "de1b191a-4ae0-4afa-a27b-92d07f46b2d6"
9+
10+
[compat]
11+
ReinforcementLearningBase = "0.12"
12+
ReinforcementLearningCore = "0.14"
13+
julia = "1.9"
14+
15+
[extras]
16+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
17+
18+
[targets]
19+
test = []
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ReinforcementLearningFarm.jl
2+
3+
This project contains updated, tested algorithms compatible with ReinforcementLearning.jl v0.11+.
4+
5+
Unlike ReinforcementLearningZoo, the algorithms here have been domesticated.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module ReinforcementLearningFarm
2+
3+
using ReinforcementLearningBase
4+
using ReinforcementLearningCore
5+
const RLFarm = ReinforcementLearningFarm
6+
export RLFarm
7+
8+
end # module
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using UUIDs
2+
using Preferences
3+
4+
if Sys.isapple()
5+
flux_uuid = UUID("587475ba-b771-5e3f-ad9e-33799f191a9c")
6+
set_preferences!(flux_uuid, "gpu_backend" => "Metal")
7+
8+
using Metal
9+
else
10+
using CUDA, cuDNN
11+
CUDA.allowscalar(false)
12+
end
13+
14+
using Test
15+
@testset "ReinforcementLearningZoo.jl" begin
16+
17+
end

src/ReinforcementLearningZoo/src/ReinforcementLearningZoo.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const RLZoo = ReinforcementLearningZoo
77
export RLZoo
88
import MLUtils
99

10+
@warn "ReinforcementLearningZoo is deprecated! Components compatible with ReinforcementLearning v0.11+ are available in ReinforcementLearningFarm."
11+
1012
include("algorithms/algorithms.jl")
1113
# include("hooks/hooks.jl") # TotalBatchRewardPerEpisode is broken, need to ensure vector copy works!
1214

src/devmode.jl

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)