Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yul19079 committed Feb 1, 2024
1 parent 3a5254b commit 9743440
Show file tree
Hide file tree
Showing 6 changed files with 348 additions and 28 deletions.
18 changes: 9 additions & 9 deletions ModelPerformance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
def std_inverse(std,data):
original_shape = data.shape
try:
data = data.copy()
except Exception:
pass
inversed_data = std.inverse_transform(np.reshape(data,(-1,data.shape[-2]*data.shape[-1])))
inversed_data = inversed_data.reshape(original_shape)
return inversed_data
def compare_result(predict,real):
assert(predict.shape == real.shape)
original_shape = predict.shape
Expand All @@ -27,12 +36,3 @@ def plot_result(predict,real,batch =0,in_out = 0):
axs[2].imshow(np.abs(predict[batch,in_out,:,:] - real[batch,in_out,:,:]), cmap = cmap,vmin = vmin,vmax = vmax)

plt.show()
def std_inverse(std,data):
original_shape = data.shape
try:
data = data.copy()
except Exception:
pass
inversed_data = std.inverse_transform(np.reshape(data,(-1,data.shape[-2]*data.shape[-1])))
inversed_data = inversed_data.reshape(original_shape)
return inversed_data
Binary file modified __pycache__/GenDs.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/ModelPerformance.cpython-311.pyc
Binary file not shown.
Binary file modified base.h5
Binary file not shown.
173 changes: 173 additions & 0 deletions model_lab.ipynb

Large diffs are not rendered by default.

185 changes: 166 additions & 19 deletions model_performance.ipynb

Large diffs are not rendered by default.

0 comments on commit 9743440

Please sign in to comment.