From 36941178ff9fef6b4ed21612d1426f1bddecd41a Mon Sep 17 00:00:00 2001 From: Hugo MacDermott-Opeskin Date: Tue, 2 Apr 2024 21:29:13 +1100 Subject: [PATCH] Fix precision to one digit on ml model inference --- falcbot/falcbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/falcbot/falcbot.py b/falcbot/falcbot.py index c091a21..9f59b64 100644 --- a/falcbot/falcbot.py +++ b/falcbot/falcbot.py @@ -412,7 +412,7 @@ def make_pic50_pred(message, say, context, logger): smiles = _rdkit_smiles_roundtrip(smiles) gs = GATInference.from_latest_by_target(target) pred = gs.predict_from_smiles(smiles) - say(f"Predicted pIC50 for {smiles} is {pred} using model {gs.model_name} :test_tube:") + say(f"Predicted pIC50 for {smiles} is {pred:.1f} using model {gs.model_name} :test_tube:")