Skip to content

Commit

Permalink
feat: Add regression coefficients in Formula report
Browse files Browse the repository at this point in the history
  • Loading branch information
gfieni committed Mar 2, 2020
1 parent c306201 commit 4463e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smartwatts/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4463e20

Please sign in to comment.