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

BREAKING CHANGE: mof interface, Graph featurizer, more BU featurizers #422

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

kjappelbaum
Copy link
Owner

@kjappelbaum kjappelbaum commented Dec 21, 2022

This PR is a large refactoring that basically implements #421 along with some new features.

Refactoring

The main change is that all featurizers need to implement _featurize, featurize and (in the case of fittable featurizers) also fit and _fit.

The public methods will accept MOF objects, the private ones something else such as Structure or StructureGraph.

This will make it easier to reuse previously computed data (e.g. fragmentation or structure graphs) and also makes it easier to implement some other featurizers that are, e.g., based on the structure graph.

New features

  • Dimensionality featurizer: Returns the dimensionality of the structure graph. Can also be applied on the fragments (but obviously depends on the fragmentation method)
  • BindingSiteFeaturizer and BranchingSiteFeaturizer based on the moffragmentor definitions of branching and binding sites

I think I'll hold off merging for a few more days to test it myself in practice to see if I run into any issues.

@kjappelbaum kjappelbaum changed the title [WIP] refactor, BREAKING CHANGE BREAKING CHANGE: mof interface, Graph featurizer, more BU featurizers Dec 23, 2022
@kjappelbaum
Copy link
Owner Author

actually, will also require a new release of the moffragmentor ... this is the reason the tests fail.

@kjappelbaum kjappelbaum linked an issue Dec 29, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant