Skip to content

上面代码中的幂运算我之前用到的是pow()函数,但是最后计算出的结果却是错的,主要表现在计算出的b的维度有误,如果知道原因的麻烦告知一下,谢谢!!! #8

Open
@weiliu0506

Description

@weiliu0506

s_corrected["dW" + str(l+1)] = s["dW" + str(l+1)]/(1 - pow(beta2, t))
s_corrected["db" + str(l+1)] = s["dW" + str(l+1)]/(1 - pow(beta2, t))

变量写错了,应该是db,而不是dW
感谢您分享的作业

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions