Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
btrotta-bom committed Oct 4, 2023
1 parent de1cc8b commit 93bba1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions improver/calibration/rainforest_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,17 +638,17 @@ def process(
output_thresholds_in_forecast_units = np.array(output_thresholds)

# Calculate probabilities at output thresholds
probabilities_by_realization = self._get_ensemble_distributions(
interpolated_per_member_CDF = self._get_ensemble_distributions(
per_member_CDF, aligned_forecast, output_thresholds_in_forecast_units
)

# Average over realizations
per_member_probability_cube = probabilities_by_realization.collapsed(
probability_cube = interpolated_per_member_CDF.collapsed(
"realization", MEAN
)
per_member_probability_cube.remove_coord("realization")
probability_cube.remove_coord("realization")

return per_member_probability_cube
return probability_cube


class ApplyRainForestsCalibrationTreelite(ApplyRainForestsCalibrationLightGBM):
Expand Down

0 comments on commit 93bba1f

Please sign in to comment.