Skip to content

Commit

Permalink
plots fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosTirador committed Dec 21, 2022
1 parent a925a8d commit efcbb41
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/vector_ploting.py → src/plots_evaluation_meassures.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from turtle import mode
from numpy import *
import math
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -46,10 +47,11 @@ def plot_eval_meassures(data, path, plot_color):

ax.plot(x, y, color=plot_color[i])

if sys.platform.startswith('win'):
fig.savefig(path[0] + "\PR_plot.png")
elif sys.platform.startswith('linux'):
fig.savefig(path[0] + "/PR_plot.png")
for i in range(0,len(data)):
if sys.platform.startswith('win'):
fig.savefig(path[i] + "\PR_plot.png")
elif sys.platform.startswith('linux'):
fig.savefig(path[i] + "/PR_plot.png")

path = os.getcwd()

Expand Down Expand Up @@ -77,8 +79,11 @@ def plot_eval_meassures(data, path, plot_color):
with open(temp + "\k_Rank.json") as json_file:
data = json.load(json_file)
data_list.append(data)

plot_eval_meassures(data_list, path_list, [corpus[0][1], corpus[1][1], corpus[2][1]])

print(path_list)

# path1 = path + f'/ddb_storage/VectorModel/{corpus[0][0]}'

# with open(path1 + "/k_Rank.json") as json_file:
Expand Down

0 comments on commit efcbb41

Please sign in to comment.