• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

stoicaandrei/godot-neural-network: Applied artificial intelligence in Godot game ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

stoicaandrei/godot-neural-network

开源软件地址:

https://github.com/stoicaandrei/godot-neural-network

开源编程语言:

GDScript 100.0%

开源软件介绍:

In this repository I made an artificial intelligence library and implemented some use cases.

Just copy the folder from lib and you're good to go.

For simple case AI use

var NeuralNetwork = preload("./Neural Network/Brain.gd")
var neural_network = NeuralNetwork.new(input_nodes: int, 
                                       hidden_nodes: int, 
                                       output_nodes: int)

neural_network.predict(inputs: Array)
neural_network.train(inptuts: Array, targets: Array)

For neuroevolution algorithms use

var NeuralNetwork = preload("./Neural Network/Brain.gd")
var neural_network = NeuralNetwork.new(input_nodes: int, 
                                       hidden_nodes: int, 
                                       output_nodes: int)

neural_network.predict(inputs: Array)
neural_network.duplicate()
neural_network.mutation_rate = mutation_rate
neural_network.mutate()

1. Simple perceptron

Here I implemented a simple perceptron, that has the role of doing linear separation of points based on a given function y=mx+b.

2. Multilayer perceptron

The first project scaled to n perceptrons, and now is a fully funcional neutral network with 3 layers, that can be trained and used for predictions. In this project I aproximated the XOR operator.

3. Matrix math

This is the barebone library of matrix operations. It contains a Matrix class with all the basic operations (both scalar and matrix wise) and a MatrixOperator class that contains static function for the matrices.

4. Color predictor

This is a program that predicts weather a color should be white or black, given the background color.

5. Neuroevolution

In this project I added more functionalities to the neural network, respectively mutate and duplicate

6. Flappy godot

In this project I implemented a flappy bird clone, and trained the neuroevolution algorithm to learn how to play

This project was inspired by Daniel Shiffman




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap