reventlov
a machine learning cellular automata companion library for olivaw
Last updated 4 years ago by lrlna .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reventlov 
SYNC missed versions from official npm registry.

reventlov

Genetically evolve your cellular automata one cell at a time.

This is a partner package to olivaw

Usage

var reventlov = require('reventlov')

var automaton = reventlov({
  rule: 110,
  population: 101,
  life: 500,
  generation: 20
})

// returns an end rule, or the rule that was completed by the end
var evolution = automaton.evolve()

automaton = reventlov(opts)

Create a new instance of reventlov by providing options. All four options are required:

  • opts.rule: one of 256 rules for the automata to follow
  • opts.population: the population size, or the number of cells you want to work with
  • opts.life: life span of an automata instance, or the number of years it will run for
  • opts.generation: the number of generations you want to evolve your automata for. Usually, more 'time' for evolution yields better results.

reventlov.evolve()

Runs through the specified number of generations and evolves automata as it goes. Returns the last rule that reventlov achieved at the end of the specified number of generations.

Install

npm install reventlov

Current Tags

  • 0.0.0                                ...           latest (4 years ago)

1 Versions

  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |