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

Avoid using the pipeline when calculating unc.

parent f8eac915
No related branches found
No related tags found
1 merge request!2Restructured code to use classes compatible with joblib and minimize hacks when saving
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -518,7 +518,7 @@ class Model(TransformerMixin, BaseEstimator): ...@@ -518,7 +518,7 @@ class Model(TransformerMixin, BaseEstimator):
# calculate the effect of the PCA # calculate the effect of the PCA
high_res = self.y_model['smoothen'].transform(high_res_data) high_res = self.y_model['smoothen'].transform(high_res_data)
high_pca = self.y_model.transform(high_res_data) high_pca = self.y_model['pca'].transform(high_res)
high_pca_rec = self.y_model['pca'].inverse_transform(high_pca) high_pca_rec = self.y_model['pca'].inverse_transform(high_pca)
high_pca_unc = np.sqrt(np.mean((high_res - high_pca_rec)**2, axis=0, keepdims=True)) high_pca_unc = np.sqrt(np.mean((high_res - high_pca_rec)**2, axis=0, keepdims=True))
self.y_model['unc'].set_uncertainty(high_pca_unc) self.y_model['unc'].set_uncertainty(high_pca_unc)
......
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