-
Notifications
You must be signed in to change notification settings - Fork 111
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
Adding iSIM as a trackable value during training #192
Conversation
Many thanks for this Kate! The code so far looks very good. The iSIM functionality should be optional i.e. a switch in the TOML file should control whether the user wants to see this or not. As for fingerprint/distance choice, I would leave that open for the moment. One problem though is that iSIM does not seem to have a proper installation procedure. The specific issue is that a |
I have made iSIM installable via: I am trying to fix the issue with making isim tracking an optional variable in the TOML file. I am tracking back from learning.py and data.py and trying to find how the config file variables are accessed and treated. I am running into a bit of an issue locating this. Thanks for your patience. |
Many thanks. Best would be to add a parameter |
I now have implemented isim tracking as optional. I had to make changes in a few more places than you mentioned. |
@@ -17,6 +17,10 @@ | |||
from torch.utils.tensorboard import SummaryWriter | |||
import numpy as np | |||
|
|||
#ISIM imports | |||
from iSIM.comp import calculate_isim |
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.
Ok, but we would also need to update the requirements file and the pyproject.toml file
@@ -219,7 +219,7 @@ def run_staged_learning( | |||
) | |||
|
|||
parameters = config.parameters | |||
|
|||
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.
Please, set up your IDE or editor to not add spurious whitespace. This distracts from actual code review. Thanks.
@@ -15,6 +15,7 @@ class ReinventConfig(GlobalConfig): | |||
use_cuda: Optional[bool] = Field(True, deprecated="use 'device' instead") | |||
tb_logdir: Optional[str] = None | |||
json_out_config: Optional[str] = None | |||
tb_isim: Optional[bool] = False |
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.
This is not needed as global parameter because it is only relevant in the RL parameter section.
Sorry it took me so long to get to this.
I have made the changes needed in the REINVENT code to track the iSIM average similarity across each training step, and add this value to the tensorboard output.
Below is a list of the changes I made:
I want to mention that I started with the absolute barebones steps for this implementation. I want to make sure this is what you all are looking for.
Below are other changes I can make:
Please let me know if this was not what you were looking for, or if you are interested in any of the above additions. Also, let me know if there was a place in the REINVENT code that I missed adding the iSIM variable. With the test code I ran, this successfully adds the iSIM value per step in the tensorboard event file.
Best,
Kate Huddleston