You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Networks create Decision objects whenever it makes a decision. This is only necessary during training, so the code that currently pertains to that should be removed.
Instead, in train.ts, provide a means to subclass into a TrainingNetwork that's able to properly create those Decision objects with the help of having full control over the simulation in the play() function.
The additional control can also be used to hook into events and replace the purpose of BattleAgent#acceptChoice(), #onFaint(), and #onTurn(), as well as moving the RewardTracker class into scripts/ and not as a field of Network. As such, the BattleState#agent field will be useless so that can be removed.
The text was updated successfully, but these errors were encountered:
Currently,
Network
s createDecision
objects whenever it makes a decision. This is only necessary during training, so the code that currently pertains to that should be removed.Instead, in
train.ts
, provide a means to subclass into aTrainingNetwork
that's able to properly create thoseDecision
objects with the help of having full control over the simulation in theplay()
function.The additional control can also be used to hook into events and replace the purpose of
BattleAgent#acceptChoice()
,#onFaint()
, and#onTurn()
, as well as moving theRewardTracker
class intoscripts/
and not as a field ofNetwork
. As such, theBattleState#agent
field will be useless so that can be removed.The text was updated successfully, but these errors were encountered: