In [4]:
# include necessary packages
using HDF5
using JLD
using PolicyViz
#Load Q data
#Uncomment if you want to load Q data
q = h5open("/home/sisl/kyle/notebooks/Reshaped_Q.h5", "r") do file
read(file, "Q")
end
q = q';
In [5]:
#ACAS Xu Regression
neuralNetworkPath = "/home/sisl/kyle/data/nnet/ACASXU_ADAMAX_customLoss_900_norm.nnet"
viz_policy(q,neuralNetworkPath)
Out[5]:
In [7]:
#Deep RL compared to polar Discrete Value Iteration
neuralNetworkPath = "/home/sisl/kyle/data/nnet/DRL_ReducedPen_AlwaysExplore_TriangleRewards_74000.nnet"
solQ = load("../../coord/src/MDP_ReducedPenConflict_radialPoints_More_fine.jld", "solQ")
solQ = solQ'
viz_policy_drl(neuralNetworkPath,solQ)
Out[7]:
In [ ]: