This repository is a collection of useful jupyter
notebooks, code snippets and example JSON
files illustrating the use of Reinvent 2.0.
At the moment, the following notebooks are supported:
Complete_Use-Case_DRD2_Demo
: a full-fledged use case using public data onDRD2
, including use of predictive models and elucidating general considerationsCreate_Model_Demo
: explanation on how to initialize a new model (prior / agent) forREINVENT
which can be trained in a transfer learning setupData_Preparation
: tutorial on how to prepare (clean, filter and standardize) data from a source such asChEMBL
to be used for trainingModel_Building_Demo
: shows how to train a predictive (QSAR) model to be used withREINVENT
based on the publicDRD2
dataset (classification problem)Reinforcement_Learning_Demo
: example reinforcement learning run with a selection of scoring function components to generate novel compounds with ever higher scores iterativelyReinforcement_Learning_Demo_Selectivity
: example illustrating the use of the relatively complicatedselectivity_component
to optimize potency against a target while simultaneously pushing for a low potency against one or more off-targetsReinforcement_Learning_Demo_Tanimoto
: very simple (only 1, easy-to-understand component) transfer learning exampleReinforcement_Learning_Exploitation_Demo
: illustrates the exploitation scenario, where one is after solutions from a subspace in chemical space already well definedReinforcement_Learning_Exploration_Demo
: illustrates the exploration scenario, where the aim is to generate a varied set of solutions to a less stringently defined problemSampling_Demo
: once an agent has been trained and is producing interesting results, it can be used to generate more compounds without actually changing it further - this is facilitated by thesampling mode
Score_Transformations
: as many components produce scores on an arbitrary scale, butREINVENT
needs to receive it normalized to be a number between 0 and 1 (with values close to 1 meaning "good"), score transformations have been implemented and can be used as shown in this tutorialScoring_Demo
: in case a set of existing compound definitions (for example prior to starting a project) should be scored with a scoring function definition, thescoring mode
can be usedTransfer_Learning_Demo
: this tutorial illustrates thetransfer learning
mode, which usually is used to "pre-train" an agent beforereinforcement learning
in case no adequate naive prior is available or to focus an already existing agent furtherTransfer_Learning_Demo_Teachers_Forcing
: same asTransfer_Learning_Demo
above, with explanation ofteachers forcing