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

Add training callbacks #71

Merged
merged 4 commits into from Jun 10, 2021
Merged

Add training callbacks #71

merged 4 commits into from Jun 10, 2021

Conversation

seanmor5
Copy link
Contributor

@seanmor5 seanmor5 commented Jun 3, 2021

WIP

## Examples

Copy link
Contributor

Choose a reason for hiding this comment

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

You probably don't want to add all of these newlines? :D

@seanmor5 seanmor5 marked this pull request as ready for review June 10, 2021 00:25
@seanmor5 seanmor5 merged commit 3efcde9 into main Jun 10, 2021
@seanmor5 seanmor5 deleted the sm-callbacks branch June 10, 2021 00:26
@@ -229,89 +289,130 @@ defmodule Axon.Training do
init_fn = &init_values/0

"""
def train({init_fn, step_fn}, inputs, targets, opts \\ []) do
def train(
%Step{init: init_fn, step: step_fn, callbacks: callbacks},
Copy link
Contributor

Choose a reason for hiding this comment

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

😍

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.

None yet

2 participants