-
Notifications
You must be signed in to change notification settings - Fork 778
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
Support Pythonic Inheritance of Flow Class #144
Comments
thanks @jensqin for the proposal. Just to be clear, the following type of inheritance is supported already: class MyModel():
def fit(self):
self.model = train(self.data)
class MyFlow(FlowSpec, MyModel):
@step
def start(self):
self.fit() However, the graph defined by Most likely we will start supporting graph composition by allowing separate subgraphs, so you will be able to do |
Thank you for responding! @tuulos . Just a few thoughts on it:
I am just a newbie and trying to understand machine learning workflow. Hope these questions will not bother you! |
Sometimes a couple of steps, parameters or functions can be used by multiple flows. It will be ideal if metaflow supports python standard class inheritance.
For example, running this script:
will get:
The text was updated successfully, but these errors were encountered: