WeatherNextRepresenter

class probly.integrations.weathernext.WeatherNextRepresenter(predictor: WeatherNextPredictor, num_samples: int = 8)[source]

Bases: Representer[Any, Any, Any, Any]

Representer collecting a WeatherNext ensemble into per-variable array samples.

Parameters:
  • predictor – The wrapped WeatherNext predictor.

  • num_samples – Number of ensemble members to forecast.

Initialize the representer.

__call__(*args: In.args, **kwargs: In.kwargs) → R[source]

Alias for the represent method.

predict(*args: In.args, **kwargs: In.kwargs) → R[source]

Predict the representation for a given input.

predictor: WeatherNextPredictor
represent(*args: Any, **kwargs: Any) → dict[str, NumpySample][source]

Forecast num_samples members and stack them into one sample per variable.