-
Notifications
You must be signed in to change notification settings - Fork 0
Added first draft of OLS model with sample data and helper tools #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Also I want to provide some experience while playing around with some models: Workload design experiencesComputer systems behave very differently in power draw when different workloads happen. Thus it was explored if separate and disparate workloads shall be used or one large mixed workload shall be used. Advantages of the separate workloads could be:
Disadvantages though respectively:
Model design experiences
|
|
@ribalba ping for you |
…y; Making mixed workload more diverse
|
I just upgrade the PR and added some more transformations. Try at you box and tell me the values. Here is what I do: sudo pkill -f energy-logger.sh
sudo ./energy-logger.sh & # will output the file it will write to
python3 run-workload.py mixed
sudo pkill -f energy-logger.sh
# now you will have output to stdout of a file name like /tmp/energy-0yb45hR0.log
# now you run the exact same stuff again
sudo pkill -f energy-logger.sh
sudo ./energy-logger.sh & # will output the file it will write to
python3 run-workload.py mixed
sudo pkill -f energy-logger.sh
# now you will have a different output to stdout of a file name like /tmp/energy-890342da.log
# Then you can run:
python3 model.py /tmp/energy-0yb45hR0.log --no-validate --fit OLS --predict /tmp/energy-890342da.logThis will effectively fit a model on the first benchmark run and then make an out of sample prediction with the second run. Also please run the last command again with Eager for the results :) |
* main: New sys file in debugfs
…ata to sample data
|
@ribalba I added a prediction stage that now also back-transforms the data from the logarithm space. It can now be iterated quite quickly iterated on. I added examples for using the model.py and the predict stage of it with included energy sample data from the newly added endpoint in This can be merged now if you feel the functionality is contributing to the tool. Happy for your feedback. TODOs (TBD in a different PR though):
|
|
I just pushed another big chunk of implementations to the branch: Models
Data Preparation
ResultsSummary
Possible next steps
Call me :) |
This PR re-works the current model implementation of the OLS model to estimate the weights.
The implementation is done in Python with the statsmodels library to make the formulas used better readable than with sklearn's OLS implementation.
OLS was used as model of choice as it has the highest interpretability allowing direct conclusions about component energy factors.
Also this PR adds sample data from my machine (Framebook) to support the project development with some sample data.
Suggested TODOs for further exploration