Key error "agent" #156
Replies: 2 comments 1 reply
-
Hi, many thanks for your interest in REINVENT and welcome to the community! I do not have enough information to diagnose your problem. What are the inputs and ouputs? Many thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your rapid response! Please see the below toml file. Everything is not changed following the tutorial configuration setup #This config file is designed to incentivise generation of high similarity molecules to the starting molecules [parameters] LibInvent: find R-groups for the given scaffoldsprior_file = "ibinvent.prior" num_smiles = 10000 # number of SMILES to be sampled, 1 per input SMILES summary_csv_prefix = "staged" [learning_strategy] type = "dap" # dap: only one supported [diversity_filter] # optional, comment section out or remove if unneeded NOTE: also memorizes all seen SMILEStype = "PenalizeSameSmiles" ScaffoldSimilarity, PenalizeSameSmilesbucket_size = 10 # memory size in number of compounds Stage 1Note that stages must always be a list i.e. double brackets[[stage]] chkpt_file = "libinvent.prior" termination = "simple" # termination criterion fot this stage [stage.scoring] [[stage.scoring.component]] [[stage.scoring.component]] |
Beta Was this translation helpful? Give feedback.
-
When I used libinvent and run staged_learning, I get error KeyError: 'agent'
│ ❱ 377 │ │ │ terminate = optimize(package.terminator)
│ ❱ 201 │ │ results = self.scoring_function( │
│ 202 │ │ │ self.sampled.smilies, self.invalid_mask, self.duplicate_ma │
│ 203 │ │ )
I tried libinvent prior in github with "[:1]Cc2ccc1cncc(C[:2])c1c2" The github given. The error still occurs
Beta Was this translation helpful? Give feedback.
All reactions