(episode_no, distance_traversed, speed_array, trackPos_array, info, running_avg_reward, f_diagnostics)
Note down a tuple of diagnostic values for each episode
	(episode_no, distance_traversed, mean(speed_array), std(speed_array), mean(trackPos_array), std(trackPos_array), info[termination_cause], running_avg_reward)
Note down a tuple of diagnostic values for each episode
	(episode_no, distance_traversed, mean(speed_array), std(speed_array), mean(trackPos_array), std(trackPos_array), info[termination_cause], running_avg_reward)
Note down a tuple of diagnostic values for each episode ( episode_no distance_traversed mean ( speed_array ) std ( speed_array ) mean ( trackPos_array ) std ( trackPos_array ) info [ termination_cause ] running_avg_reward )
def document_episode(episode_no, distance_traversed, speed_array, trackPos_array, info, running_avg_reward, f_diagnostics):
	"""
	Note down a tuple of diagnostic values for each episode
	(episode_no, distance_traversed, mean(speed_array), std(speed_array), mean(trackPos_array), std(trackPos_array), info[termination_cause], running_avg_reward)
	"""
	f_diagnostics.write(str(episode_no)+",")
	f_diagnostics.write(str(distance_traversed)+",")
	f_diagnostics.write(str(np.mean(speed_array))+",")
	f_diagnostics.write(str(np.std(speed_array))+",")
	f_diagnostics.write(str(np.mean(trackPos_array))+",")
	f_diagnostics.write(str(np.std(trackPos_array))+",")
	f_diagnostics.write(str(info['termination_cause'])+",")
	f_diagnostics.write(str(running_avg_reward)+"\n")
def document_episode ( episode_no , distance_traversed , speed_array , trackPos_array , info , running_avg_reward , f_diagnostics ) : f_diagnostics . write ( str ( episode_no ) + "," ) f_diagnostics . write ( str ( distance_traversed ) + "," ) f_diagnostics . write ( str ( np . mean ( speed_array ) ) + "," ) f_diagnostics . write ( str ( np . std ( speed_array ) ) + "," ) f_diagnostics . write ( str ( np . mean ( trackPos_array ) ) + "," ) f_diagnostics . write ( str ( np . std ( trackPos_array ) ) + "," ) f_diagnostics . write ( str ( info [ 'termination_cause' ] ) + "," ) f_diagnostics . write ( str ( running_avg_reward ) + "\n" )