资源算法DRQN-keras

DRQN-keras

2020-01-16 | |  32 |   0 |   0

Deep Recurrent Q-Network (DRQN)

** Keras implementation of DRQN. This code needs to be fixed though its score would be good at the end. Please do not see this repository seriously.

Atari-Breakout

Main Idea?

CRNN model using 'TimeDistributed' wrapper for Conv2D and LSTM

def build_model(self):

    model = Sequential()

    model.add(TimeDistributed(Conv2D(32, (8, 8), strides=(4, 4), activation='relu'),

                              input_shape=(10, 84, 84, 1)))

                              #input_shape=(time_step, row, col, channels)
                              
    model.add(TimeDistributed(Conv2D(64, (4, 4), strides=(2, 2), activation='relu')))
   
    model.add(TimeDistributed(Conv2D(64, (3, 3), strides=(1, 1), activation='relu')))
   
    model.add(TimeDistributed(Flatten()))

    model.add(LSTM(512))

    model.add(Dense(128, activation='relu'))

    model.add(Dense(self.action_size))

    model.summary()

    return model

图片.png

Breakout DRQN Source Code

Code Reference: 'breakout_dqn.py' at https://github.com/rlcode/reinforcement-learning-kr




上一篇: DRQN-tensorflow

下一篇:drqn_mazeworld

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • shih-styletransfer

    shih-styletransfer Code from Style Transfer ...