This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./scripts/setup_linux.sh | |
Installing system dependencies | |
You will probably be asked for your sudo password. | |
Get:1 file:/var/cuda-repo-8-0-local InRelease | |
Ign:1 file:/var/cuda-repo-8-0-local InRelease | |
Get:2 file:/var/cuda-repo-8-0-local Release [574 B] | |
Get:2 file:/var/cuda-repo-8-0-local Release [574 B] | |
Ign:4 http://desktop-download.mendeley.com/download/apt stable InRelease | |
Hit:5 http://desktop-download.mendeley.com/download/apt stable Release | |
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial InRelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GradientTest { | |
private static final Logger logger = LoggerFactory.getLogger(GradientTest.class); | |
public static void main(String[] args) { | |
//Create the model | |
int nIn = 2; | |
int nOut = 1; | |
Nd4j.getRandom().setSeed(12345); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import smile.plot.*; | |
/** | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class TileCoding(object): | |
def __init__(self, func_approx_settings): | |
self.num_tilings = func_approx_settings['num_tilings'] | |
assert(self.num_tilings % 2 == 0) | |
self.state_dim = func_approx_settings['state_dim'] | |
self.bound_low = func_approx_settings['bound_low'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Data structure for implementing actor network for DDPG algorithm | |
Algorithm and hyperparameter details can be found here: | |
http://arxiv.org/pdf/1509.02971v2.pdf | |
Original author: Patrick Emami | |
Author: Bart Keulen | |
""" |