Skip to content

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

Open
kjappelbaum wants to merge 17 commits intomainfrom
kjappelbaum/issue419
Open

BREAKING CHANGE: mof interface, Graph featurizer, more BU featurizers#422
kjappelbaum wants to merge 17 commits intomainfrom
kjappelbaum/issue419

Conversation

@kjappelbaum
Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
Collaborator 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
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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