-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_acc.py
More file actions
25 lines (21 loc) · 972 Bytes
/
plot_acc.py
File metadata and controls
25 lines (21 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 19 11:18:01 2020
@author: llcnt
"""
import pickle
import matplotlib.pyplot as plt
import numpy as np
def sho(epochs, insert, embed, num, weight):
with open("epochs_Acc1"+"_"+str(epochs)+"_"+str(insert)+"_"+str(embed)+"_"+str(num)+"_"+str(weight)+".txt", "rb") as fp: #Pickling
epochs_Acc1 = pickle.load(fp)
plt.plot(epochs_Acc1)
def sho_per(epochs, insert, embed, num, weight):
with open("epochs_train_res_perplexity"+"_"+str(epochs)+"_"+str(insert)+"_"+str(embed)+"_"+str(num)+"_"+str(weight)+".txt", "rb") as fp: #Pickling
epochs_Acc1 = pickle.load(fp)
plt.plot(epochs_Acc1)
def sho_entropy(epochs, insert, embed, num, weight):
with open("epochs_train_res_perplexity"+"_"+str(epochs)+"_"+str(insert)+"_"+str(embed)+"_"+str(num)+"_"+str(weight)+".txt", "rb") as fp: #Pickling
epochs_Acc1 = pickle.load(fp)
plt.plot(np.log(epochs_Acc1))