Walk-forward backtest of the valuation model
backtest_estimatorMeasure the reliability of property estimates by backtesting the comparable-sales model on historical notarial sales, returning accuracy metrics like MAPE, bias, and coverage by surface and year.
Instructions
Replay the comparable-sales estimator on the commune's own notarized sales: every historical sale is valued using only the sales recorded before it (no look-ahead, own deed excluded), then compared with the price actually paid. Returns MAPE, median and 90th-percentile absolute error, signed bias, P25–P75 range coverage and the same metrics by surface band and by year. Use it to say how reliable estimate_property is in this specific market.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Precise address (street or house number) in France | |
| to_year | No | Last sale year to evaluate | |
| from_year | No | First sale year to evaluate (default: every year available) | |
| max_points | No | Max sales evaluated, most recent first (default 250) | |
| type_local | Yes | Property type to backtest |