Genetic Hello World

Learning and science

genetic algorithm demo

SHOW HN2017

76points
16comments
#581of 2,242 in 2017
Top 26%of 2017 by points

How HN took it

MixedNo clear lean

5 positive, 3 neutral or asking, 0 mixed, 2 critical, out of 10 comments about the project. Thread score +0.25.

Idea: 4 for, 0 againstExecution: 1 for, 1 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple, clear and easy to follow demonstration

    From 2 comments
    • Thanks for sharing. Concise and easy to follow. I ported it to C to try it out for myself. Turning off console output makes it finish almost instantly!
      sjmulder on HN
    • This is a really fun demonstration.
      greenpizza13 on HN
  • Genetic algorithms are an elegant optimization heuristic

    From 1 comment
    • Up-voting because even though genetic algorithms seem inefficient compared to back-propagation with gradient descent, it still is an elegant optimization heuristic for many…
      hcarvalhoalves on HN

Objections

  • README wrongly conflates genetic algorithms with genetic programming

    From 2 comments
    • Cool! A minor nitpick about the README - genetic algorithm is not the same thing as genetic programming. The former is what you're doing here, the latter refers to building a…
      TeMPOraL on HN
    • It is not a minor nit & good to point out.
      eternalban on HN
  • README could better explain the concept quickly

    From 1 comment
    • I find it interesting - but it would be nice if there is a better README for visitor to grab the concept quick.
      david90 on HN

Requests

  • Try Levenshtein distance as fitness metric

    From 1 comment
    • I wonder how using Levenshtein distance as a fitness metric would affect the speed of progress: https://en.wikipedia.org/wiki/Levenshtein_distance OP, if you want to experiment,…
      vanderZwan on HN

Questions

  • Why lower-cost solutions rank above closer ones in the output

    From 1 comment
    • The cost function just looks like difference squared, but I'm not sure how that yields results like this: ``` Hglmo,wosmd! (8) Gflln* wosle! (9) Hello, wosld! (9999) Hello,…
      natosaichek on HN

Alternatives named

  • Explore Genetic Algorithm tool by nk1tz

    From 1 comment
    • I've long been a fan of the GA optimization technique. I created this little tool to explore the genetic algorithm. You can tweak parameters on the fly and watch the effect it…
      nk1tz on HN
  • Methinks it is like an incestuous weasel (Levenshtein example)

    From 1 comment
    • I used Levenshtein distance for a similar thing some years ago: https://tomnomnom.com/posts/methinks-it-is-like-an-incestuous-weasel It worked very well!
      TomNomNom on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/14352386)