作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在实现由 Kenneth Stanley 开发的 NEAT 算法,采用原始 paper作为引用。
在描述交叉方法的部分中,有一件事让我有点困惑。
因此,上图说明了 NEAT 的交叉方法。为了确定基因从哪个 parent 继承,论文如下:
Matching genes are inherited randomly, whereas disjoint genes (those that do not match in the middle) and excess genes (those that do not match in the end) are inherited from the more fit parent.
最佳答案
查看实际实现并了解它是如何处理的可能会有所帮助。在原始 C++ 代码中 here (从第 2085 行开始),来自不合适的 parent 的不相交和多余的基因似乎被跳过了。
在您的实现中,您可以从不合适的父代继承不相交和多余的基因,但以概率 1 禁用它们,以便您稍后可以对它们进行逐点突变(从禁用切换到启用)。但是,这可能会导致显着的基因组膨胀,因此请进行测试并查看有效方法。
关于neural-network - NEAT 算法 : How to crossover disjoint and excess genes?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50553867/
我是一名优秀的程序员,十分优秀!