필터 지우기
필터 지우기

Implementing NEAT algorithm in Simulink

조회 수: 9 (최근 30일)
ALLEGRA
ALLEGRA 2024년 3월 13일
답변: Tushar Sharma 2024년 3월 19일
I am trying to modify the walking robot example to use the NEAT algorithm, but I don't see any way of building an evolving neural network using the reinforcement learning toolbox. I was thinking that maybe somehow I could incorporate Python-NEAT? I am new so I'm not really sure what's possible.

답변 (1개)

Tushar Sharma
Tushar Sharma 2024년 3월 19일
Hi Allegra,
I assume that you are referring to 'msra-walking-robot' - https://github.com/mathworks/msra-walking-robot.
The algorithm used in this case is Deep Deterministic Policy Gradient (DDPG), chosen for the following reasons:
  • It learns with environments with continuous action spaces
  • Deterministic policies are faster to learn
If you want to write your own environment and training algorithm, the documents listed below servers as a good starting point:
Also, If you want to incorporate NEAT-Python, then you may leverage MATLAB's ability to call Python functions to directly interact with the NEAT-Python implementation. This means you'll be running the simulation in MATLAB, and each time you need to evaluate a genome's fitness, you'll call the simulation from your Python code through MATLAB.
Here are the steps to follow:
  1. Ensure Python is installed.
  2. Next, install NEAT-Python by running `pip install neat-python`.
  3. Finally, set up MATLAB to utilize Python by configuring the correct Python environment with the `pyenv` function.
The following resources would help-

카테고리

Help CenterFile Exchange에서 Model Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by