Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Genetic Algorithm Fish

Loading...

Sign in or sign up now!
52,908
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 19, 2008

http://metivity.com
evolution of fish. each fish is a neural net.
The purpose of this application is to develop a "killer fish" - a fish that eats maximum pieces of food in a constant time period.

The world is populated by 20 fish and 40 pieces of food.

every time a generation begins. the food is scatted in a random distribution on a certain random location on the screen. (random piles of food).
When being eaten, the food shows up in a new random pile in the screen.

Every fish has a brain - Neural Net. It has 2 inputs:
the direction and velocity of the fish. (himself).
the relative location of the closest food.
and two outputs:
velocity of right wheel.
velocity of left wheel.
You can refer to the movement as a tank with two chains, and the output as the velocity of each chain.

the target is to find weights for the neural net that will give the fish a "killer-brain"...

When running the application you will see the generations go by. In each generation we select the best fish in generation and breed them to form new 20 fish.

the brains (Neural Nets) of the initial 20 fish are created randomly. This explains why they are so "stupid".

look how they improve as time goes by. their logic is being build by evolution, without interference.

http://metivity.com

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (ravivyatom)

  • Ho Yes. :) . I believe in it.

    Thank you for your response.

    

  • Yes, it is. most of it.

    I played and changed the algorithm a little bit.

    I also made a game of two teams, one team - predators and one prey. both evolving.

  • This is really cool. What sort of "parameters" does each fish have that is randomised at the beginning, and evolved as the generations go past?

  • @FalconPunchTheFail hi

    The parameters are the values of the neural network that reacts to location of the food.

see all

All Comments (86)

Sign In or Sign Up now to post a comment!
  • @tyebillion I've made programms like that, and I used a "vision system". Obviusly each fish must scan their environment... For instance, using a function with a packed information about "how the world is" in a cercle centered in the fish, that gives a number-direction as output...

  • @timen1986 i simulated your mom's tits last night.

  • nice. i'm building my own right now with java. this is some powerful shit - do you have any plans for actually applying it to solve real life problems?

  • So eventually they learn to chase the food? :D

  • @otoparc yeah his just ripped it off

  • Isn't this just the 'tank-example' with a fish picture instead of a tank?

  • Fish are dumb.

View all Comments »
Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more