-
Notifications
You must be signed in to change notification settings - Fork 0
Add a notebook for partitioning #76
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
SCiarella
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 @SarahAlidoost, the notebook looks nice.
One first technical comment is that all the notebooks need to add:
from diffwofost.physical_models.config import ComputeConfig
ComputeConfig.set_device('cpu')otherwise they fail if a GPU is available because it would be the default device of the model, but not of the notebook's variables.
In terms of content, I see that we are no longer optimizing a logistic function, but rather optimizing the parameters directly. To me, this seems cleaner (and it is probably faster), but maybe those sigmoid functions have a deeper meaning that we are losing? Anyway, let's wait for someone with more knowledge to comment on this issue.
Finally, I do not fully understand the last figure: it is just the xy coordinates of predicted vs true parameter?
Good point 👍 I'll fix it.
You’re right! In the notebook pcse notebook / 11 Optimizing partitioning in a PCSE model.ipynb, the partitioning variables ( The notebook in this PR uses a
The x axes is DVS and y axis are the the partitioning values (FL , FS and FO), actual vs predicted. |
I fixed the variable naming, plots and approximation of partitioning variables. What still remains is the logic of loss function. right now we use the loss between the output of partitioning modules (FO, FS and FL) and test data. This might not be the right approach, something to be explored more 🤔 |
|



closes #73
In this notebook, I implemented a different approach than the one in pcse notebook / 11 Optimizing partitioning in a PCSE model.ipynb.
I will update doc after #62