How to do it...

  1. Add the RL4J core dependency:
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>rl4j-core</artifactId>
<version>1.0.0-beta3</version>
</dependency>
  1. Add the RL4J Malmo dependency:
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>rl4j-malmo</artifactId>
<version>1.0.0-beta3</version>
</dependency>
  1. Add a dependency for the ND4J backend:
    • For CPU, you can use the following:
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-platform</artifactId>
<version>1.0.0-beta3</version>
</dependency>
    • For GPU, you can use the following:
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-cuda-10.0</artifactId>
<version>1.0.0-beta3</version>
</dependency>

  1. Add Maven dependency for MalmoJavaJar:
<dependency>
<groupId>com.microsoft.msr.malmo</groupId>
<artifactId>MalmoJavaJar</artifactId>
<version>0.30.0</version>
</dependency>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset