Skip to content

Comments

Confidence intervals from linear regression#104

Merged
adrienbanse merged 9 commits intomainfrom
feat/interval_regression
Feb 13, 2025
Merged

Confidence intervals from linear regression#104
adrienbanse merged 9 commits intomainfrom
feat/interval_regression

Conversation

@adrienbanse
Copy link
Collaborator

@adrienbanse adrienbanse commented Dec 20, 2024

Following #95, for each value that is a result of a linear regression, we explicitely compute uncertainty and provide 95% confidence intervals with y = f(x) +- 1.96 * std_dev.

In the context of the computed impacts, the standard deviations for both the energy and the latency have been computed in https://github.com/genai-impact/methodology/blob/main/lab/lin_reg.ipynb. The impacts that depend on these values are therefore ValueRange, and not float or int such as before.

This PR also adds somes tests for ValueRange, as __mul__ and __truediv__ operations were implented.

Remains to

  • Update the doc

@adrienbanse adrienbanse marked this pull request as ready for review February 5, 2025 17:11
@adrienbanse adrienbanse marked this pull request as ready for review February 8, 2025 13:12
@adrienbanse
Copy link
Collaborator Author

(Optional) Following @NP4567-dev PR we can include an uncertainty mode in the config

@samuelrince
Copy link
Collaborator

Also, let's not include the configuration part for now, I have reverted it temporarily!

@samuelrince
Copy link
Collaborator

samuelrince commented Feb 13, 2025

All good for me @adrienbanse, thanks for this PR!

@adrienbanse adrienbanse merged commit ba53719 into main Feb 13, 2025
2 checks passed
@samuelrince samuelrince deleted the feat/interval_regression branch August 7, 2025 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants