Views
No views yet
emflow
swedish-temperatures:ar benchmark. This is what a model submission should look
like: a single submission.py that defines an emflow.Predictor and exposes it as
a module-level model.📌 For interns: copysubmission.py, renameExamplePredictor, and replace thetrain/predictbodies with your own model. Keep the same contract.
submission.py just needs a module-level emflow.Predictor instance:model = MyModel() # a FRESH, UNTRAINED modelget_model() -> emflow.Predictor factory — the verifier
accepts either form.)emflow.Predictor subclass implements:train(self, train_df) — fit on the wide temperature DataFrame (hourly UTC
index, one column per station). Use only what's passed.predict(self, input_df) — return a DataFrame/Series whose entry at the
last timestamp of input_df is your 1-step-ahead forecast for that hour.
Use only past lags; the value at the last timestamp is intentionally NaN.t, the model sees only the series strictly before t. You never see the
test targets and cannot train on them, so the score can't be inflated by leakage.1# from a clone of emflow, with the submissions extra installed
2uv sync --extra submissions
3
4# straight from this repo on the Hub (pin a commit for reproducibility)
5python scripts/verify_submission.py hf://rebase-energy/emflow-submission-example/submission.py \
6 --revision <commit-sha>submission.py into submissions/ and run
python scripts/verify_submission.py submissions/submission.py.