REINVENT is an open-source recurrent neural network trained on data derived from In contrast to previous work, we introduce a weighting function 𝑤(𝑥) which assigns a weight between 0 and 1 to all molecules in the batch. This allows us to modulate the contribution of individual compounds to the RL process. We use a learning rate 0.0001 and the Adam Optimiser for RL.