diff --git a/smartwatts/handler.py b/smartwatts/handler.py index 9aa43b1..7a4a142 100644 --- a/smartwatts/handler.py +++ b/smartwatts/handler.py @@ -131,7 +131,8 @@ def _gen_formula_report(self, timestamp: datetime, pkg_frequency: float, model: 'samples': len(model.history), 'id': model.id, 'error': error, - 'intercept': model.model.intercept_ + 'intercept': model.model.intercept_, + 'coef': str(model.model.coef_) } return FormulaReport(timestamp, self.state.sensor, model.hash, metadata)