question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Features for the antibiotics checkpoints

See original GitHub issue

Hi,

I want to make predictions using the Antibiotics checkpoints provided here: http://chemprop.csail.mit.edu/checkpoints

I do this by running the following command:

chemprop_predict --test_path data/smiles.csv --checkpoint_dir checkpoint --preds_path test_preds.csv --features_generator rdkit_2d_normalized --no_features_scaling

Am I using the correct features generator for this checkpoint?

In addition, when running predictions, I get the following warning:

Warning: Pretrained parameter "encoder.encoder.cached_zero_vector" cannot be found in model parameters.                                   
Warning: Pretrained parameter "encoder.encoder.W_i.weight" cannot be found in model parameters.
Warning: Pretrained parameter "encoder.encoder.W_h.weight" cannot be found in model parameters.
Warning: Pretrained parameter "encoder.encoder.W_o.weight" cannot be found in model parameters.
Warning: Pretrained parameter "encoder.encoder.W_o.bias" cannot be found in model parameters.
Loading pretrained parameter "ffn.1.weight".
Loading pretrained parameter "ffn.1.bias".

I wonder if this something I should be worried about.

Thanks!

M

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hesthercommented, Apr 26, 2021

We just fixed the features scaling bug. You should now be able to run:

python scripts/save_features.py --data_path data/smiles.csv --save_path data/smiles_features.npz --features_generator rdkit_2d_normalized

python predict.py --test_path data/smiles.csv --checkpoint_dir checkpoint --preds_path test_preds.csv --features_path data/smiles_features.npz --no_features_scaling

(This will produce the exact same predictions you had before, the only difference is that you can correctly set the --no_features_scaling option now).

0reactions
hesthercommented, Apr 28, 2021

@miquelduranfrigola - no worries at all, am happy that it all works now. This also reminded me that I wanted to write a bug report to the descriptastorus team regarding all the warning, which I now finally did - thanks for the reminder!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The impact of antibiotic use on clinical features and survival ...
The impact of antibiotic use on clinical features and survival outcomes of cancer patients treated with immune checkpoint inhibitors.
Read more >
Antibiotic use and the efficacy of immune checkpoint inhibitors ...
KEYWORDS: Antibiotics, immune checkpoint inhibitors, immunotherapy, overall survival, ... The main characteristics of the included studies are listed in.
Read more >
Antibiotic therapy and outcome from immune-checkpoint ...
Sensitivity to immune checkpoint inhibitor (ICPI) therapy is governed by a complex interplay of tumor and host-related determinants.
Read more >
Impact of antibiotic exposure on the efficacy of immune ...
We aimed to evaluate what factors impacted immune checkpoint blockade (ICB) response in pts with MSI-H metastatic colorectal cancer (mCRC) ...
Read more >
Association of Prior Antibiotic Treatment With Survival and ...
This cohort study assesses the clinical outcomes of patients with cancer treated with immune checkpoint inhibitors (ICIs) who received ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found