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

feat: algo to function in substratools #201

Merged
merged 11 commits into from
Oct 11, 2022
Merged

Conversation

@ThibaultFy ThibaultFy marked this pull request as ready for review October 7, 2022 07:44
@ThibaultFy ThibaultFy changed the title feat: substratools class to function feat: algo to function in substratools Oct 7, 2022
@ThibaultFy ThibaultFy force-pushed the gt/class_to_function branch 2 times, most recently from 4e0885f to da69950 Compare October 10, 2022 12:55
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
@ThibaultFy ThibaultFy force-pushed the gt/class_to_function branch from da69950 to 51d8c58 Compare October 10, 2022 13:47
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Comment on lines 175 to +176
if __name__ == "__main__":
tools.algo.execute(Algo())
tools.execute(train, predict)
Copy link
Contributor

Choose a reason for hiding this comment

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

What do we need that now that we specify the entrypoint?

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to pass the functions we want to register to substratools.
A new interface will be proposed very soon (like in the afternoon) to use decorator to register the functions, and have only tools.execute() without arguments

Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
@ThibaultFy ThibaultFy merged commit 42a5fc7 into main Oct 11, 2022
@ThibaultFy ThibaultFy deleted the gt/class_to_function branch October 11, 2022 09:12
davidendico-owkin pushed a commit that referenced this pull request Oct 24, 2022
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
Signed-off-by: David ENDICO <david.endico@owkin.com>
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