Skip to content

Commit

Permalink
fix: return value for regression line casted to float (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteZamboni authored Jul 17, 2024
1 parent c2f5437 commit d5d862d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spark/jobs/metrics/model_quality_regression_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def get_regression_line(model: ModelOut, dataframe: DataFrame):
c = lr_model.coefficients[0]
i = lr_model.intercept

return [[0, i], [1, c + i]]
return [[0, float(i)], [1, float(c + i)]]

@staticmethod
def residual_metrics(model: ModelOut, dataframe: DataFrame):
Expand Down

0 comments on commit d5d862d

Please sign in to comment.