ActorNetwork.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:ddpg-ros-keras 作者: robosamir 项目源码 文件源码
def create_actor_network(self, state_size,action_dim):
        print("Now we build the model")
        model = Sequential()
        S = Input(shape=[state_size])   
        h0 = Dense(100, init='he_uniform',activation='relu')(S)
        h1 = Dense(100, init='he_uniform',activation='relu')(h0)
        V = Dense(8, init=lambda shape, name: uniform(shape, scale=3e-3, name=name),activation='tanh')(h1)
        model = Model(input=S,output=V)
        return model, model.trainable_weights, S
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号