All Projects → heucoder → carAI-Demo

heucoder / carAI-Demo

Licence: other
使用浅层神经网络和遗传算法训练一个可以自动驾驶小车的Demo

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to carAI-Demo

Training-Snake-Game-With-Genetic-Algorithm
training snake game using neural network and genetic algorithm
Stars: ✭ 28 (-56.25%)
Mutual labels:  genetic-algorithm, pygame
Neatron
Yet another NEAT implementation
Stars: ✭ 14 (-78.12%)
Mutual labels:  genetic-algorithm
Smart-Algorithm
智能算法-遗传算法、蚁群算法、粒子群算法实现。实现版本Java,Python,MatLab多版本实现
Stars: ✭ 277 (+332.81%)
Mutual labels:  genetic-algorithm
Chip8Python
A Super Chip 8 emulator written in Python
Stars: ✭ 65 (+1.56%)
Mutual labels:  pygame
biteopt
Derivative-Free Optimization Method for Global Optimization (C++)
Stars: ✭ 91 (+42.19%)
Mutual labels:  genetic-algorithm
luma.emulator
Provides a series of pseudo-display devices which allow the luma.core components to be used without running a physical device.
Stars: ✭ 32 (-50%)
Mutual labels:  pygame
naturalselection
A general-purpose pythonic genetic algorithm.
Stars: ✭ 17 (-73.44%)
Mutual labels:  genetic-algorithm
arja
Multi-Objective GP for Automated Repair of Java
Stars: ✭ 31 (-51.56%)
Mutual labels:  genetic-algorithm
space-invaders
👾Python clone with a modern twist
Stars: ✭ 209 (+226.56%)
Mutual labels:  pygame
GARI
GARI (Genetic Algorithm for Reproducing Images) reproduces a single image using Genetic Algorithm (GA) by evolving pixel values.
Stars: ✭ 41 (-35.94%)
Mutual labels:  genetic-algorithm
AlphaZero-Renju
No description or website provided.
Stars: ✭ 17 (-73.44%)
Mutual labels:  pygame
PHP
PHP Related Projects: Like simple PHP Genetic algorithm, LDAP login , Websockets and more
Stars: ✭ 22 (-65.62%)
Mutual labels:  genetic-algorithm
Genetic-Algorithm-on-K-Means-Clustering
Implementing Genetic Algorithm on K-Means and compare with K-Means++
Stars: ✭ 37 (-42.19%)
Mutual labels:  genetic-algorithm
Arcade-CS-Games
Jeux pour l'arcade des CS Games
Stars: ✭ 18 (-71.87%)
Mutual labels:  pygame
ga-openai-gym
Usage of genetic algorithms to train a neural network in multiple OpenAI gym environments.
Stars: ✭ 24 (-62.5%)
Mutual labels:  genetic-algorithm
OptimisationAlgorithms
Searching global optima with firefly algorithm and solving traveling salesmen problem with genetic algorithm
Stars: ✭ 20 (-68.75%)
Mutual labels:  genetic-algorithm
geneticalgorithm2
Supported highly optimized and flexible genetic algorithm package for python
Stars: ✭ 36 (-43.75%)
Mutual labels:  genetic-algorithm
VRPTW-ga
Vehicle Routing Problem with Time Windows - Genetic Algorithm solution with Python
Stars: ✭ 40 (-37.5%)
Mutual labels:  genetic-algorithm
TerraCraft
Voxel Engine written in Python 3 + Pyglet.
Stars: ✭ 49 (-23.44%)
Mutual labels:  pygame
PygameWidgets
A module for use with Pygame. Includes fully customisable buttons, textboxes, sliders and many more, as well as the ability to create and run animations on these widgets.
Stars: ✭ 34 (-46.87%)
Mutual labels:  pygame

小车AI-demo 0.1.1

  • 邮箱:[email protected] Build Status
  • 使用python编写的小车AI,使用浅层神经网络控制小车,使用遗传算法选择表现表现好的神经网络;编译环境为python3.6.2

小车部分

  • 使用pygame绘制简易赛道和作为方块的小车,其中小车有速度、角度、距离赛道边缘距离等重要属。

神经网络

  • 使用numpy编写的浅层神经网络
    • 包含数据层、线性层、和非线性层sigmoid
    • 提供了一个节点列表,用户可以更加方便的调整网络的大小
    • 没有使用bp算法优化,而是使用遗传算法进行优化
    • 实现了保存和加载网络参数功能

遗传算法

  • distur_param:对权值进行随机扰动
  • _replace_one_layer_param:随机重置某一层的权值

需要安装的python库

  • numpy
  • pygame

如何运行

进入Car-AI目录下,运行下列代码即可(linux/windows): python mainGame.py 即可

适合人群

  • 有一定的python基础,熟悉pygame库、对神经网络和遗传算法有一定的了解

视频见如下链接

https://zhuanlan.zhihu.com/p/60195914

存在的小问题

  • 数值溢出问题
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].