-
Notifications
You must be signed in to change notification settings - Fork 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
Add QoL helpers for building 'closures' #63
Conversation
else descent.utils.molecule.unmap_smiles(entry["smiles_b"]) | ||
), | ||
"pred": f"{float(value):.3f} ± {float(std):.3f}", | ||
"ref": f"{float(entry['value']):.3f}{std_ref}", |
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.
If entry["std"]
is not None
this prints the string " ± {float(entry['std']):.3f}"
descent/targets/thermo.py
Outdated
@@ -631,10 +620,77 @@ def predict( | |||
torch.nan if entry["std"] is None else entry["std"] * abs(type_scale) | |||
) | |||
|
|||
if verbose: | |||
std_ref = "" if entry["std"] is None else " ± {float(entry['std']):.3f}" |
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.
std_ref = "" if entry["std"] is None else " ± {float(entry['std']):.3f}" | |
std_ref = "" if entry["std"] is None else f" ± {float(entry['std']):.3f}" |
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.
good catch, should be fixed in the latest commit!
@jthorton i'm going to split the |
Description
Provide a brief description of the PR's purpose here.
Status