知识卡片

普通读书笔记卡 · 6726 · 生成模型:GPT-6

循环状态与函数递归是不同机制

理解等级:中级

RNN把上一步状态与当前输入用于同一转移函数,代码可用普通循环实现,无需函数调用自身。终止可由输入结束、长度上限或停止标记决定;不是每次都必须删除输入,也不保证使用循环就自然避免无限生成。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      But wait, isn’t recursion dangerous? If that’s the first thought that came to you when you read recurrence, you’re not alone. Anyone who has taken an algorithms class has probably broken a function, rendered an entire program unusable, or even taken down an entire web server, by using recurrence incorrectly. The key to doing recurrence correctly and safely is to ensure your algorithm is always

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第08章《循环网络与长短期记忆》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-8.html) - 结论依据:摘录中关于循环状态与函数递归是不同机制的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:But wait, isn’t recursion dangerous? If that’s the first thought that came to you when you read recurrence, you’re not alone. Anyone who has taken an algorithms class has probably broken a function, rendered an entire program unusable, or even taken down an entire web server, by using recurrence incorrectly. The key to doing recurrence correctly and safely is to ensure your algorithm is always