Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combined conditional moments and wind conditional moments. #207

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions sup3r/preprocessing/conditional_moment_batch_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def make_output(
HR is high-res and LR is low-res
"""
# Remove first moment from HR and square it
out = model_mom1._tf_generate(low_res).numpy()
exo_data = model_mom1.get_high_res_exo_input(high_res)
out = model_mom1._tf_generate(low_res, exo_data).numpy()
out = model_mom1._combine_loss_input(high_res, out)
return (high_res - out) ** 2


Expand Down Expand Up @@ -530,7 +532,9 @@ def make_output(
SF = HR - LR
"""
# Remove LR and first moment from HR and square it
out = model_mom1._tf_generate(low_res).numpy()
exo_data = model_mom1.get_high_res_exo_input(high_res)
out = model_mom1._tf_generate(low_res, exo_data).numpy()
out = model_mom1._combine_loss_input(high_res, out)
enhanced_lr = spatial_simple_enhancing(low_res, s_enhance=s_enhance)
enhanced_lr = temporal_simple_enhancing(
enhanced_lr, t_enhance=t_enhance, mode=t_enhance_mode
Expand Down
377 changes: 0 additions & 377 deletions sup3r/preprocessing/wind_conditional_moment_batch_handling.py

This file was deleted.

Loading
Loading