Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rejection sampling #10

Merged
merged 30 commits into from
Mar 11, 2024
Merged

Rejection sampling #10

merged 30 commits into from
Mar 11, 2024

Conversation

tigranfah
Copy link
Member

No description provided.

chemlactica/config/create_train_config.py Outdated Show resolved Hide resolved
chemlactica/custom_trainer.py Show resolved Hide resolved
return MACCSkeys.GenMACCSKeys(Chem.MolFromSmiles(smiles))


def tanimoto_dist_func(smiles1: str, smiles2: str, fingerprint: str="morgan"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's convert fingerprint type options e.g. "morgan" vs "maccs" vs "ecfp" to an enum and call a match statement on the supported options.

maccs_sim_to_lead: float=-1
inchi: str=None

def score(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would we modify the scoring function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be tackled in future iterations, when we experiment with something other than the qed constrained optimization problem.

chemlactica/generation/generation.py Outdated Show resolved Hide resolved
chemlactica/generation/rejection_sampling_utils.py Outdated Show resolved Hide resolved
chemlactica/rejection_sampling_ft.py Outdated Show resolved Hide resolved
@philippguevorguian philippguevorguian merged commit 248d4ea into main Mar 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants