-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
workstation1 gpu
committed
May 13, 2022
1 parent
9f62660
commit 592e8f3
Showing
26 changed files
with
612 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from numpy import genfromtxt | ||
import matplotlib.pyplot as plt | ||
import pandas as pd | ||
def plot_cmvae_error_progress(epochs, errors, Type = 'Training'): | ||
fig = plt.figure() | ||
ax = fig.add_subplot(1, 1, 1) | ||
ax.plot(epochs, errors[0], color='tab:blue') | ||
ax.plot(epochs, errors[1], color='tab:orange') | ||
ax.plot(epochs, errors[2], color='tab:red') | ||
ax.set_title('cmvae ' + Type + ' losses') | ||
plt.legend(["Img recon", "Gate recon", "kl"]) | ||
|
||
|
||
fig2 = plt.figure() | ||
ax = fig2.add_subplot(1, 1, 1) | ||
zipped = zip(errors[0], errors[1], errors[2]) | ||
Sum = [x+y+z for (x,y,z) in zipped] | ||
ax.plot(epochs, Sum, color='tab:blue') | ||
ax.set_title('CMVAE Total ' + Type + ' loss') | ||
plt.show() | ||
|
||
def plot_imitation_error_progress(epochs, errors, Type = 'Training'): | ||
fig = plt.figure() | ||
ax = fig.add_subplot(1, 1, 1) | ||
ax.plot(epochs, errors, color='tab:blue') | ||
ax.set_title('bc ' + Type + ' Error') | ||
|
||
|
||
df = pd.read_csv('tst.csv', delimiter=',').T | ||
# User list comprehension to create a list of lists from Dataframe rows | ||
data = [list(row) for row in df.values] | ||
plot_cmvae_error_progress(data[0], data[1:4]) | ||
plot_cmvae_error_progress(data[0], data[4:7], Type = "Testing") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0.0,0.23140303790569305,0.3254210650920868,3.1158947944641113,0.17979291081428528,0.27923378348350525,3.1158947944641113 | ||
1.0,0.15479321777820587,0.3123328685760498,2.1645729541778564,0.1421280950307846,0.27504462003707886,2.1645729541778564 | ||
2.0,0.13745853304862976,0.3074854612350464,1.2580513954162598,0.1331387311220169,0.27260622382164,1.2580513954162598 | ||
3.0,0.13198621571063995,0.3034461438655853,0.4452038109302521,0.13156656920909882,0.2675051987171173,0.4452038109302521 | ||
4.0,0.12863336503505707,0.29639697074890137,0.10872875154018402,0.12640348076820374,0.2596818208694458,0.10872875154018402 | ||
5.0,0.12491415441036224,0.2890583276748657,0.05528435856103897,0.12311731278896332,0.25211650133132935,0.05528435856103897 | ||
6.0,0.12222196906805038,0.28153902292251587,0.049212679266929626,0.12009679526090622,0.2448357343673706,0.049212679266929626 | ||
7.0,0.12039639800786972,0.2744167149066925,0.052575163543224335,0.11832506954669952,0.2389456182718277,0.052575163543224335 | ||
8.0,0.11916572600603104,0.26751983165740967,0.03737931698560715,0.1169983297586441,0.23230648040771484,0.03737931698560715 | ||
9.0,0.11809031665325165,0.2609376609325409,0.04091877117753029,0.11578226834535599,0.22665441036224365,0.04091877117753029 |
Oops, something went wrong.