This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
146a simplify training - but backwards compatible #153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a backwards-compatible alternative to #148. I think this could be a better approach. It opens up some flexibility, without sacrificing existing functionality. Specifically it accomplishes this by
trainer
class to a more generictrain
function.train_model
function which I see as a wrapper around thetrain
function that provides some additional structuretrain_model
train_model
function, but they want to use their own custom model and they don't want to code it into thetrain_model
function, they can just pass it in as themodel
argument and bypass theif else
statements for defining and compiling the model.river-dl
codebase.RGCN
andLSTM
) are still accessible via themodel_type
argument like before.I would love your feedback, @janetrbarclay and @SimonTopp. And it would be super helpful if you could pull this branch and see if it indeed works with your existing Snakefiles.