cgcardona / audiofile_sdk

The SDK bits of Audiofile
1 stars 0 forks source link

Implement natural selection via fitness #10

Closed cgcardona closed 11 years ago

cgcardona commented 11 years ago

Summary

Currently when I mate the two parents I am just randomly selecting them from the current generation's gene pool.

Task

Implement something similar to the top answer from this Stack Overflow thread

This will make each generation further optimize to the goal.

cgcardona commented 11 years ago

First take at this: https://github.com/cgcardona/audiofile_sdk/commit/bbf3d1e6d79ac04f7aa7022e7163ad83ad9c2636

Though it appears to be incorrect because it's optimizing for low scores which is obviously incorrect.

cgcardona commented 11 years ago

Implemented exactly what was in the stack overflow thread and it's working like a charm

:-D

https://github.com/cgcardona/audiofile_sdk/commit/db9afa27bd2e515e88ff4b58f0d1ca8f81a1f903

:+1: