PathmindAI / nativerl

Train reinforcement learning agents using AnyLogic or Python-based simulations
Apache License 2.0
19 stars 4 forks source link

expect, that rewardTermsSnippet is always set #392

Closed alethander closed 3 years ago

alethander commented 3 years ago

As per SkymindIO/pathmind-webapp#3551 web-app will always generate and set reward function in the format of rewardFunctionTerns, even for old UI. Also, web-app sets REWARD_TERMS_SNIPPET (along with REWARD_SNIPPET) that are then passed to train.sh, and set as args to AnyLogicHelper:

https://github.com/SkymindIO/nativerl/blob/8125b43c7fe2907161db41d79d5490329248f736/nativerl/examples/train.sh#L226

That means, there is no need to re-generate the reward function.