random number generator seed in reinforcement learning

6 ビュー (過去 30 日間)
mohsan niaz
mohsan niaz 2022 年 1 月 7 日
回答済み: yu ZHANG 2022 年 11 月 10 日
Hi Everyone,
I want to use the block called 'random source' in simulink for reinfrocement learning environment. When ever i try to train the agent, the random source generates the same random numbers. Can anyone guide how can i force it to generate random number in every training episode.
Here i would mention that there is an option of repeatibility in the block. I have set it non repeatable, but still it generates the same sequence in every episode.
Regards
Mohsan.
  1 件のコメント
Florian Rosner
Florian Rosner 2022 年 1 月 19 日
Hi, in my understanding the random source block creates a random signal. For random number generation you could use the block "Uniform Distributed Random Number". Here you can set min,max, sample Time and seed.
Regards,
Flo.

サインインしてコメントする。

回答 (1 件)

yu ZHANG
yu ZHANG 2022 年 11 月 10 日
I also encountered this problem. Have you solved it?

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by