windkit.ltc.LinRegMCP.predict_with_noise#
- LinRegMCP.predict_with_noise(ds_ref, seed=0)[source]#
Predict wind speed with added Gaussian noise.
Calls
predict()to obtain the deterministic prediction and the per-timestep residual standard deviation, then samples noise fromN(0, residual_std)and adds it to the predicted wind speed. Negative wind speeds are clipped to zero.- Parameters:
ds_ref (xarray.Dataset) – Time series wind climate dataset.
seed (int) – Random seed for reproducibility. Default is 0.
- Returns:
Predicted wind speeds with added noise.
- Return type:
- Raises:
WindkitValidationError – If any sector has an undefined residual standard deviation (too few training samples).