-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
df8d770
commit fdea4fb
Showing
2 changed files
with
36 additions
and
0 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
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,35 @@ | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
import os | ||
|
||
current_directory = os.path.dirname(os.path.realpath(__file__)) | ||
csv_file_path = os.path.join(current_directory, 'sample.csv') | ||
data = np.genfromtxt(csv_file_path, delimiter=',', | ||
names=['epoch', 'loss', 'episode', 'result', 'reason', | ||
'duel', 'time', 'color']) | ||
|
||
# TODO: epoch vs loss (logarithmic y-axis) | ||
plt.plot(data['epoch'], data['loss'], color='r', label='sample') | ||
plt.ticklabel_format(style='sci', axis='loss', scilimits=(0, 0)) | ||
plt.xlabel('epoch') | ||
plt.ylabel('loss') | ||
plt.title('epoch vs loss') | ||
plt.legend() | ||
plt.show() | ||
|
||
# TODO: epoch vs time | ||
plt.plot(data['epoch'], data['time'], color='r', label='sample') | ||
plt.xlabel('epoch') | ||
plt.ylabel('time') | ||
plt.title('epoch vs time') | ||
plt.legend() | ||
plt.show() | ||
|
||
# TODO: epoch vs episode | ||
# TODO: epoch vs duel | ||
# TODO: loss vs result | ||
# TODO: loss vs reason | ||
# TODO: loss vs duel | ||
# TODO: loss vs color | ||
# TODO: duel vs time | ||
# TODO: epoch vs winning percentage |