Closed markusdumke closed 6 years ago
Use 2, but embed 2 into 1. We can decide whether to expose 2 to the user.
Ok, I have a draft now online, integrating the new object-oriented environments into the master thesis package version:
https://github.com/markdumke/reinforcelearn/blob/yet_another_branch/R/environment.R
You can install it with devtools::install_github("markdumke/reinforcelearn", ref = "yet_another_branch")
and then run e.g. ?makeEnvironment
and ?GymEnvironment
.
@smilesun
What do you think is better for the user interface? Having one function
makeEnvironment
which then calls the corresponding environment subclass as in 1. or exposing all the subclasses to the user as in 2.?