Commit e1f88c77 authored by Jayant Khatkar's avatar Jayant Khatkar
Browse files

plot graph of 10 models

parent 42cbea0c
......@@ -88,4 +88,7 @@ plot(rl, cdata)
# rollout order animated
rl = random_rollout(cdata)
rl = Vector(1:length(rl))
@time plot_animate(rl, cdata)
\ No newline at end of file
@time plot_animate(rl, cdata)
# plot results
\ No newline at end of file
......@@ -7,7 +7,7 @@ using Statistics
using BenchmarkTools
using LinearAlgebra
using PlotlyJS
import PlotlyJS: plot
import PlotlyJS: plot, scatter
using Colors
using Plots
......@@ -688,6 +688,18 @@ function plot_animate(rl::Vector{Int}, cdata::contourdata; cam=(45,45), rate=1)
function plot(results::Dict)
rkey = keys(results)
default_costs = [results[k]["cost_default"] for k in rkey]
random_costs = [results[k]["cost_random"] for k in rkey]
local_costs = [results[k]["cost_local"] for k in rkey]
trace2 = scatter(x=rkey,y=random_costs./default_costs, name="Random")
trace3 = scatter(x=rkey,y=local_costs./default_costs, name="Local Search")
traces = [trace2, trace3]
function update_result(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment