Skip to content

Instantly share code, notes, and snippets.

View aqeelanwar's full-sized avatar

Aqeel Anwar aqeelanwar

View GitHub Profile
@aqeelanwar
aqeelanwar / bias_var_tradeoff.py
Last active February 17, 2020 07:18
Bias-Variance tradeoff by example
# 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)
@aqeelanwar
aqeelanwar / agent.py
Created October 20, 2019 06:35
DRLwithTL agent.py
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)