Before exporting to Pathmind, it's helpful to confirm that the data passed to the Pathmind Helper is valid. This is critical to obtain a well-trained policy.

Printing Debug Information 

Inside the Pathmind Helper properties, select "Debug Mode" to print to console.

From there, run your AnyLogic simulation and open up the AnyLogic console.

Inside the console, the Pathmind Helper will print the following information each time an agent performs an action. Inspect this to troubleshoot errors in your simulation. 

Step: 1
Array: {stateChartState[0]=1.0, stateChartState[1]=0.0, stateChartState[2]=0.0}
Number of Observations: 3
Array: {goalReached=0.0}
Number of Metrics: 1
Last Action: [0.0]


Step - The step associated with each action. Every time an action is triggered, the step count is incremented.

Observations - Outputs observations at each step. Audit these values to confirm that observations are computed correctly. 

Metrics - Output metrics each step. Audit these values to confirm that metrics are computed correctly.

Last Action -  The last action taken.

Did this answer your question?