# Where are the RL4J examples?

**URL:** <https://community.konduit.ai/t/where-are-the-rl4j-examples/1864>\
**Category:** RL4J\
**Created:** [May 15, 2022, 10:09am UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864 "2022-05-15T10:09:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPSforLEGENDS](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/gpsforlegends/32/65_2.png) [@GPSforLEGENDS](https://community.konduit.ai/u/GPSforLEGENDS)\
**Post date:** [May 15, 2022, 10:09am UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864/1 "2022-05-15T10:09:47Z")

</div>

Hi,

does anyone know where the examples for RL4J are? And is there any documentation for RL4J?

---

<div class="post-metadata">

**Author:** ![ThomasVoss](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/thomasvoss/32/889_2.png) [@ThomasVoss](https://community.konduit.ai/u/ThomasVoss)\
**Post date:** [August 24, 2022, 12:54pm UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864/2 "2022-08-24T12:54:08Z")

</div>

As pointed out [in this Post](https://community.konduit.ai/t/migrating-rl4j-to-dl4j-contrib/1792) the code has moved temporarily. There are some examples [in the Repo](https://github.com/kgoderis/deeplearning4j/tree/rl4j-refactor/rl4j/src/main/java/org/deeplearning4j/rl4j/examples)

---

<div class="post-metadata">

**Author:** ![hhauschild](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/hhauschild/32/999_2.png) [@hhauschild](https://community.konduit.ai/u/hhauschild)\
**Post date:** [January 4, 2023, 12:46pm UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864/3 "2023-01-04T12:46:01Z")

</div>

Is it currently possible to run the examples without building the dependencies from the refactor-branch? I have tried to compile **NStepRnnExample** using rl4j-cor-1.0.0-M1.1.jar, but I am missing some classes like SteppingAgent and LearningAgent.

---

<div class="post-metadata">

**Author:** ![hhauschild](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/hhauschild/32/999_2.png) [@hhauschild](https://community.konduit.ai/u/hhauschild)\
**Post date:** [January 4, 2023, 12:59pm UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864/4 "2023-01-04T12:59:37Z")

</div>

To answer my own question: An older version of the example class compiles fine with 1.0.0-M1.1:

> <https://github.com/kgoderis/deeplearning4j/blob/65c6a9a42e4e14fe98ccb99a3015d74b7072ae50/rl4j/rl4j-core/src/test/java/org/deeplearning4j/rl4j/NStepRnn.java>

It’s also nice to compare the two versions of the example to see the refactoring results.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [January 5, 2023, 2:16am UTC](https://community.konduit.ai/t/where-are-the-rl4j-examples/1864/5 "2023-01-05T02:16:21Z")

</div>

@hhauschild we’ve retired rl4j. You’re welcome to use it in its oldest version but we won’t have anymore updates for it.
