Skip to content
Snippets Groups Projects
Commit 1957df82 authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Bug fix in eps calculation.

parent 99b33851
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ class Model(object): ...@@ -114,7 +114,7 @@ class Model(object):
low_pca = self.lr_pca.fit_transform(low_res) low_pca = self.lr_pca.fit_transform(low_res)
high_pca = self.hr_pca.fit_transform(high_res) high_pca = self.hr_pca.fit_transform(high_res)
# split in train and test for PCA uncertainty evaluation # split in train and test for PCA uncertainty evaluation
low_pca_train, low_pca_test, high_pca_train, high_pca_test = train_test_split(low_pca, high_pca, test_size=self.test_size) low_pca_train, low_pca_test, high_pca_train, high_pca_test = train_test_split(low_pca, high_pca, test_size=self.test_size, random_state=42)
# fit the linear model # fit the linear model
self.fit_model.fit(low_pca_train, high_pca_train, low_pca_test, high_pca_test) self.fit_model.fit(low_pca_train, high_pca_train, low_pca_test, high_pca_test)
......
...@@ -87,7 +87,7 @@ def main(): ...@@ -87,7 +87,7 @@ def main():
# plot # plot
for tid in test_tids: for tid in test_tids:
idx = np.where(tid==tids)[0][0] idx = np.where(tid==tids)[0][0]
plot_result(f"test_{tid}.png", spec_pred[idx, :, :], spec_smooth[idx, :], spec_raw_pe[idx, :], eps) plot_result(f"test_{tid}.png", spec_pred[idx, :, :], spec_smooth[idx, :], spec_raw_pe[idx, :])
if __name__ == '__main__': if __name__ == '__main__':
main() main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment