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

implemented apax batch evaluation node #280

Merged
merged 2 commits into from
Jun 6, 2024
Merged

implemented apax batch evaluation node #280

merged 2 commits into from
Jun 6, 2024

Conversation

M-R-Schaefer
Copy link
Contributor

batch evaluation node suitable for evaluating many differently sized structures. Batch size of 1 is sufficient.

@M-R-Schaefer M-R-Schaefer requested a review from PythonFZ June 3, 2024 10:23
Copy link
Contributor

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

Looks good, primarily concerned with the ipsuite import

Comment on lines 7 to 8
from ipsuite import fields

Copy link
Contributor

Choose a reason for hiding this comment

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

if you import IPSuite here, you could use the base class as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair, I'll switch to the base class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yeah this is also why the tests fail, my bad

Comment on lines 1 to 5
from .analysis import ApaxBatchPrediction
from .md import ApaxJaxMD
from .model import Apax, ApaxEnsemble

__all__ = ["Apax", "ApaxEnsemble", "ApaxJaxMD"]
__all__ = ["Apax", "ApaxEnsemble", "ApaxJaxMD", "ApaxBatchPrediction"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we split this into Nodes that work out-of-the-box and models that depend on IPSuite.
With a

with contextlib.supress(ImportError)
   from .analysis import ApaxBatchPrediction
__all__.append("ApaxBatchPrediction")

This would also allow the BatchSelection until ipsuite-core is ready.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good

@M-R-Schaefer
Copy link
Contributor Author

I wrapped the import in a try except block and fixed the module path.

@M-R-Schaefer M-R-Schaefer requested a review from PythonFZ June 6, 2024 06:27
Copy link
Contributor

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

👍

@M-R-Schaefer M-R-Schaefer merged commit 8a297d8 into dev Jun 6, 2024
2 checks passed
@M-R-Schaefer M-R-Schaefer deleted the ips_batch_eval branch June 6, 2024 08:50
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