Get unlimited public & private packages + team-based management with npm Teams.Learn more »

@thi.ng/gp

0.1.2 • Public • Published

@thi.ng/gp

npm version npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

Genetic programming helpers & strategies (tree based & multi-expression programming).

This package does not (yet) provide a complete GP framework and is largely focused on the following operations:

  • General GP setup configuration
  • Genotype / chromosome / AST generation
  • Phenotype / chromosome translation
  • Offspring generation
    • Crossover (single-point, uniform)
    • Mutation

Does not specifically deal with:

  • Population management
  • AST evaluation
  • Fitness computation

References:

Status

ALPHA - bleeding edge / work-in-progress

Related packages

  • @thi.ng/defmulti - Dynamic, extensible multiple dispatch via user supplied dispatch function.
  • @thi.ng/pointfree - Pointfree functional composition / Forth style stack execution engine
  • @thi.ng/sexpr - Extensible S-Expression parser & runtime infrastructure
  • @thi.ng/shader-ast - DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets
  • @thi.ng/zipper - Functional tree editing, manipulation & navigation

Blog posts

Installation

yarn add @thi.ng/gp

Package sizes (gzipped): ESM: 1.2KB / CJS: 1.3KB / UMD: 1.4KB

Dependencies

Usage examples

Several demos in this repo's /examples directory are using this package.

A selection:

shader-ast-evo

screenshot

Live demo | Source

API

Generated API docs

TODO

Authors

Karsten Schmidt

License

© 2019 - 2020 Karsten Schmidt // Apache Software License 2.0

Install

npm i @thi.ng/gp

DownloadsWeekly Downloads

8

Version

0.1.2

License

Apache-2.0

Unpacked Size

61.4 kB

Total Files

19

Last publish

Collaborators

  • avatar