-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotting.jl
More file actions
22 lines (14 loc) · 757 Bytes
/
plotting.jl
File metadata and controls
22 lines (14 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using CSV, DataFrames, PyCall, Seaborn, LaTeXStrings, Pandas
pygui(:tk)
close("all")
figure()
df = CSV.read("./results/results_cv_linkpred_june11.csv")
res = []
for row in eachrow(df)
global res;
r1 = (dataset=row[:dataset], num_nodes=row[:num_nodes], num_edges=row[:num_edges], density=row[:density], trial=row[:trial], alpha=row[:alpha], c=row[:c_nonlocal], accuracy=row[:accuracy_nonlocal], method="nonlocal")
r2 = (dataset=row[:dataset], num_nodes=row[:num_nodes], num_edges=row[:num_edges], density=row[:density], trial=row[:trial], alpha=0, c=row[:c_local], accuracy=row[:accuracy_local], method="local")
push!(res, r1,r2)
end
newdf = Pandas.DataFrame(res)
Seaborn.boxplot(x="dataset", y="accuracy", hue="method", data=newdf)