This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: aqeelanwar | |
| # Created: 16 February,2020, 7:12 PM | |
| # Email: aqeel.anwar@gatech.edu | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib | |
| matplotlib.rcParams['font.sans-serif'] = "cmr10" | |
| import random | |
| np.random.seed(54) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DeepAgent(): | |
| def __init__(self, input_size, num_actions, client, env_type, train_fc, network_path, name): | |
| print('------------------------------ ' +str(name)+ ' ------------------------------') | |
| self.g = tf.Graph() | |
| self.iter=0 | |
| with self.g.as_default(): | |
| self.stat_writer = tf.summary.FileWriter(network_path+'return_plot') | |
| # name_array = 'D:/train/loss'+'/'+name | |
| self.loss_writer = tf.summary.FileWriter(network_path+'loss/'+name) |