Git Product home page Git Product logo

neat-sandbox's Introduction

neat-sandbox

This is a very rough, and my first ever implementation of a learning neural network using the NEAT algorithm.

It's all in PHP.

It makes use of two non-traditional PHP library. Raylib for graphics and FANN for Neural networks.

https://github.com/raysan5/raylib

https://github.com/nawarian/raylib-ffi

https://libfann.github.io/fann/docs/files/fann-h.html#FANN_Creation/Execution

As a drupal web developer, I've fallen on using familar tools and so this all works in lando https://docs.lando.dev/basics/

There is a dockerfile that builds the raylib and fann libraries.

Requirements

This has only been tested on Ubuntu 21.04

Installation

Install lando as per lando docs. clone this repo and cd to it's directly. Run `lando start'.

Running.

Just run

lando php neural.php

Learn more about neural networks in php

https://www.youtube.com/watch?v=5bFxDsoNFzU

Raylib notes and links

Excellent video covering the status PHP game and the RAYLIB-PHP library.

https://www.youtube.com/watch?v=q1X_6TYd030

The raylib-library

https://github.com/joseph-montanez/raylib-php/

This looks like an excellect project. The info in the readme, the youtube videos etc have great information.

This library needs to be compiled and linked into PHP, I was unable to get this library to compile and link correctly and fell back to using raylib-ffi which is slower but achieved my demo purposes for now.

RaylibFFI

https://github.com/nawarian/raylib-ffi

This is the library I used to communicate with raylib c library. It's php based library so is installed with composer. simple, easy, slow.

RaylibCPP

This PHP library appears to be stalled, but not much more than raylib-php is. I haven't looked into this one much as it appears less stable thatn raylib-php and raylib-ffi worked for me.

PHP Neural nets links and notes

PHP FANN Fast

An excellent overview of the FANN libary in PHP and how to use it. This is essentially a digestible interpretation of the PHP documentation. https://www.youtube.com/watch?v=5bFxDsoNFzU&t=155s

More details on Neural networks in PHP.

Learn about matrices. maybe. https://www.youtube.com/watch?v=iC13u7tspyg

PHP Docs: https://www.php.net/manual/en/book.fann.php

FANN overview: https://github.com/libfann/fann

neat-sandbox's People

Contributors

thursdaybw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.