JSPM

@thi.ng/gp

0.2.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q70940F
  • License Apache-2.0

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

Package Exports

  • @thi.ng/gp

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thi.ng/gp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Search or submit any issues for this package

  • @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
// ES module
<script type="module" src="https://unpkg.com/@thi.ng/gp?module" crossorigin></script>

// UMD
<script src="https://unpkg.com/@thi.ng/gp/lib/index.umd.js" crossorigin></script>

Package sizes (gzipped, pre-treeshake): ESM: 1.20 KB / CJS: 1.25 KB / UMD: 1.36 KB

Dependencies

Usage examples

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

A selection:

Screenshot Description Live demo Source
Evolutionary shader generation using genetic programming Demo Source

API

Generated API docs

TODO

Authors

Karsten Schmidt

If this project contributes to an academic publication, please cite it as:

@misc{thing-gp,
  title = "@thi.ng/gp",
  author = "Karsten Schmidt",
  note = "https://thi.ng/gp",
  year = 2019
}

License

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