Skip to content

Mordred BCUT#623

Open
j-adamczyk wants to merge 31 commits into
mordredfrom
mordred_bcut
Open

Mordred BCUT#623
j-adamczyk wants to merge 31 commits into
mordredfrom
mordred_bcut

Conversation

@j-adamczyk

Copy link
Copy Markdown
Member

Changes

Mordred BCUT descriptors. About 3x faster than original.

Checklist before requesting a review

  • Docstrings added/updated in public functions and classes
  • Tests added, reasonable test coverage (at least ~90%, make test-coverage)
  • Sphinx docs added/updated and render properly (make docs and see docs/_build/index.html)

@j-adamczyk j-adamczyk marked this pull request as draft June 10, 2026 13:11
# Conflicts:
#	skfp/fingerprints/_new_mordred/descriptors/morse.py
#	skfp/fingerprints/_new_mordred/utils/graph_matrix.py
#	tests/descriptors/topological.py
#	tests/fingerprints/new_mordred_fp.py
@j-adamczyk j-adamczyk marked this pull request as ready for review June 12, 2026 14:38
props = np.fromiter(
(func(a) for a in mol.GetAtoms()), # type: ignore
dtype=np.float32,
count=mol.GetNumAtoms(),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's a good practice to memoize mol.GetNumAtoms() before the loop

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