这是 Siraj Raval 在 Youtube 上用 Tensorflow.js 实现Evolution建模的代码。
视频:
https://youtu.be/HT1_BHA3ecY
https://adityathebe.github.io/evolutionSimulator/
Github:
https://github.com/llSourcell/Modeling_Evolution_with_TensorflowJS
1.神经网络
所有生物都有一个3层前馈神经网络作为他们的大脑。 拓扑结构为4 - 100 - X,其中输出层中节点X的数量取决于生物的肌肉数量。 输入到网络的输入数据是:
2.遗传算法设计的网络: