Matalb Academy - Reinforcement Learning Onramp: submission failed

조회 수: 1(최근 30일)
I am taking the course titled Reinforcement Learning Onramp on MATLAB Academy and everything works fine until section 3.6 (Creating Default Agent Representations).
When I submit my answer, the system showed the given answer is wrong.
Then I tried the code from the solution, but the result was the same.
So, I cannot proceed from here.
Screenshot has been attached.


Matt Tearle
Matt Tearle 2021년 3월 18일
There was a change in R2021a that caused an incompatibility. We have a fix ready that will go out with the next update to the training course content. In the meantime, use this workaround to enable you to keep working through the Onramp:
layers = [
imageInputLayer([28 28 1],'Name','input','Normalization',"none")
classificationLayer('Name','classOutput',"Classes",["a" "b"])];
lgraph = layerGraph(layers)
actnet = assembleNetwork(lgraph)
  댓글 수: 8
Matt Tearle
Matt Tearle 2021년 4월 7일
Those are just different kinds of neural network layers. It's probably worth clarifying that this is a temporary hack to fool the grading code until the incompatibility is resolved in the next release - these are not layers you'd actually use in practice (in this application). They are layers more commonly used in deep learning for a task like image classification.
As an aside, there are cool RL applications that combine deep learning for images with RL, such as playing video games or controlling a robot/vehicle from video input (eg self-driving cars).

댓글을 달려면 로그인하십시오.

Pavankumar Patil
Pavankumar Patil 2021년 8월 29일
Use the sim function to run multiple simulations of the model, using the simulation options in opts.The environment and RL agent are stored in the variables env and agent, the result of the simulation to a variable called simout.

Community Treasure Hunt

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

Start Hunting!

Translated by