6

Self-Parking Car Evolution

 2 years ago
source link: https://trekhleb.dev/self-parking-car-evolution/#/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Self-Parking Car Evolution
Self-Parking Car Evolution

Training the car to do self-parking using genetic algorithm

How it works Source-code
Parking Evolution
Automatic Parking
Manual Parking
Train the car to do self-parking using genetic algorithm

For better results, increase the population size to 500-1000 and wait for 50-100 generations. More about params setup
Generation:
#1
Group:
#1 / 50
Group lifetime:
15s
World age:
02s
Generation lifetime, s
Time the cars have for parking
Gene mutation probability, %
≈7 out of 180 car genes will be mutated
Long-living champions, %
6 best cars will be copied to the next generation
Generation size
open
Group size
open
Performance boost
0Generation #0LossP50 Avg LossMin Loss
Min Loss
P50 Avg Loss
Licence PlateLossFitnessCAR-1-1CAR-1-2CAR-1-3CAR-1-4CAR-1-5CAR-1-6CAR-1-7CAR-1-8CAR-1-9CAR-1-10CAR-1-11CAR-1-12CAR-1-13CAR-1-14CAR-1-15CAR-1-16CAR-1-17CAR-1-18CAR-1-19CAR-1-20CAR-1-21CAR-1-22CAR-1-23CAR-1-24CAR-1-25CAR-1-26CAR-1-27CAR-1-28CAR-1-29CAR-1-30CAR-1-31CAR-1-32CAR-1-33CAR-1-34CAR-1-35CAR-1-36CAR-1-37CAR-1-38CAR-1-39CAR-1-40CAR-1-41CAR-1-42CAR-1-43CAR-1-44CAR-1-45CAR-1-46CAR-1-47CAR-1-48CAR-1-49CAR-1-50CAR-1-51CAR-1-52CAR-1-53CAR-1-54CAR-1-55CAR-1-56CAR-1-57CAR-1-58CAR-1-59CAR-1-60CAR-1-61CAR-1-62CAR-1-63CAR-1-64CAR-1-65CAR-1-66CAR-1-67CAR-1-68CAR-1-69CAR-1-70CAR-1-71CAR-1-72CAR-1-73CAR-1-74CAR-1-75CAR-1-76CAR-1-77CAR-1-78CAR-1-79CAR-1-80CAR-1-81CAR-1-82CAR-1-83CAR-1-84CAR-1-85CAR-1-86CAR-1-87CAR-1-88CAR-1-89CAR-1-90CAR-1-91CAR-1-92CAR-1-93CAR-1-94CAR-1-95CAR-1-96CAR-1-97CAR-1-98CAR-1-99CAR-1-100
  • 1st Best Car Genome
    Car genome
    0 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 0 0 1 1 0 0 1 0 0 1 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 1 0 1 1 0 1 0 1 0 1 0 0 0 0 1 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 1 0 0 1 0 0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 0 0 0
    Genes: 180
    Engine formula
    472, -118, -6.25, 102, 0.657, 4.375, -106, 2.563, 0.75
    Multipliers for 8 car sensors (+1 bias unit) that define the engine mode (backward, neutral, forward)
    Wheels formula
    0.016, -13.25, -3.875, -30.5, 25.5, -6.25, 118, 23.5, -224
    Multipliers for 8 car sensors (+1 bias unit) that define the wheels direction (left, straight, right)
  • 2nd Best Car Genome

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK