How to add a custom QSAR classifier scoring component (with prediction probability) in REINVENT 4? #258
Replies: 4 comments 4 replies
-
That doesn't look right (AI generated code?). Have you had a look at the existing scoring components? There are quite a few of them. Also in the For startes, |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
First of all, a big thank you to @halx — your support has been incredibly valuable, and I truly appreciate the guidance provided across many threads. That said, I’m stuck with a persistent issue while trying to run a custom scoring component plugin in Google Colab. Here's my situation: 🧪 My Setup
Everything works smoothly for transfer learning, reinforcement learning, and all other components defined in the configs .📦 Custom Plugin Added:
|
Beta Was this translation helpful? Give feedback.
-
The easiest for you would be to simply copy your component to the same place as the other components. As you have the right naming convention of the filename, one reason why it does not import is because of errors. After installation you should be able to test this with from reinvent_plugins.components import comp_myqsar |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m trying to integrate a custom QSAR classifier into REINVENT 4 as a scoring component. My goal is to use the probability predicted by the classifier (e.g.,
predict_proba
) as a score during reinforcement learning.I’ve implemented the plugin like this (saved as
reinvent_plugins/custom_rf_scorer.py
):Then, in my staged learning TOML configuration, I try to use the model like this:
My questions:
I’ve tried everything I could find in the docs and GitHub issues, but I can’t figure out what’s missing.
Any help or working example would be greatly appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions