Skip to content

Instantly share code, notes, and snippets.

@Islandman93
Islandman93 / smoothstep.ipynb
Last active January 11, 2021 14:36
Smooth step
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Islandman93
Islandman93 / dqn_nips.json
Created August 7, 2017 02:02
DQN nips hyperparameters
{
"agent": "DQNAgent",
"episodes": 10000,
"max_timesteps": 10000,
"preprocessing": [
{
"type": "image_resize",
"width": 84,
"height": 84
@Islandman93
Islandman93 / nips_dqn_architecture.json
Created August 5, 2017 13:45
TensorForce configuration for the NIPS DQN architecture
[
{
"type": "conv2d",
"size": 16,
"window": 8,
"stride": 4,
"bias": true,
"padding": "VALID"
},
{
@Islandman93
Islandman93 / batch_dqn_agent_visual.json
Created August 5, 2017 13:39
TensorForce config for batch dqn agent
"preprocessing": [
{
"type": "image_resize",
"width": 84,
"height": 84
},
{
"type": "grayscale"
},
class SPPLayer(lasagne.layers.Layer):
def __init__(self, incoming, **kwargs):
super(SPPLayer, self).__init__(incoming, **kwargs)
# divide by 4 gives 16 patches
self.win1 = (int(np.floor(incoming.output_shape[2]/4.0)), int(np.floor(incoming.output_shape[3]/4.0)))
self.str1 = (int(np.ceil(incoming.output_shape[2]/4.0)), int(np.ceil(incoming.output_shape[3]/4.0)))
# divide by 2 gives 4 patches
self.win2 = (int(np.floor(incoming.output_shape[2]/2.0)), int(np.floor(incoming.output_shape[3]/2.0)))