You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PV twin predicts non-zero PV at night (Model.Predict returns Beta[0]) #133
RLS trains only in daylight (Update gates on `clearSkyW >= 50`), but nothing pins `Beta[0]` to 0. Whenever the daytime residual is minimized by a non-zero intercept + lower `Beta[2]` coefficient, the model picks that — and the intercept leaks into night predictions.
The planner's `selectPlannerPVW` (mpc/service.go:832) makes it worse at night specifically: when `forecastPVW < 200 W` (which is always true at night — met.no returns 0) it falls back unreserved to the twin's prediction, so the 1.1 kW phantom generation becomes the MPC's sole PV input.
Fix (this issue — narrow)
Hard gate at the top of `Model.Predict`: when `clearSkyW < 50` return 0. Mirrors the Update-side gate (same threshold, same physical justification: no sun → no PV).
Follow-up (separate issue)
The intercept still drifts during the day and biases daytime predictions. See #TBD.
Activity
fix(pvmodel): gate Predict at clearSky<50 to suppress night-time phan…
fix(pvmodel): gate Predict at clearSky<50 to suppress night-time phan…
fix(pvmodel): drop RLS intercept so daytime predictions don't carry a…
fix(pvmodel): drop RLS intercept so daytime predictions don't carry a…
chore(drivers): remove the Device Support package format from Core (#…