Flux.jl/docs/src/training/training.md

5 lines
130 B
Markdown
Raw Normal View History

2017-09-10 01:01:19 +00:00
```julia
Flux.train!(loss, repeated((x,y), 1000), SGD(params(m), 0.1),
cb = throttle(() -> @show(loss(x, y)), 5))
```