You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 11, 2018. It is now read-only.
CURRENTLY NOT WORKING! There will be a further notice when it's updated.
NEAT (NeuroEvolution of Augmenting Topologies) is a neuroevolution algorithm by
Dr. Kenneth O. Stanley which evolves not only neural networks' weights but also their
topologies. This method starts the evolution process with genomes with minimal structure,
then complexifies the structure of each genome as it progresses. You can read the original
paper from here.
Installation
To install neat run the following:
$ go get -u github.com/jinyeom/neat
Usage
This NEAT package is as simple as plug and play. All you have to do is to create
a new instance of NEAT, given the configuration from a JSON file, for which the
template is provided below, and an evaluation method of a neural network, and
run.
Now that you have the configuration JSON file is ready as config.json, we can
start experiment with NEAT. Below is an example XOR experiment.
package main
import (
"log""math"// Import NEAT package after installing the package through// the instruction provided above."github.com/jinyeom/neat"
)
funcmain() {
// First, create a new instance of Config from the JSON file created above.// If there's a file import error, the program will crash.config, err:=neat.NewConfigJSON("config.json")
iferr!=nil{
log.Fatal(err)
}
// Then, we can define the evaluation function, which is a type of function// which takes a neural network, evaluates its performance, and returns some// score that indicates its performance. This score is essentially a genome's// fitness score. With the configuration and the evaluation function we// defined, we can create a new instance of NEAT and start the evolution // process.neat.New(config, neat.XORTest()).Run()
}
License
This package is under GNU General Public License.
About
NEAT (NeuroEvolution of Augmenting Topologies) implemented in Go