stop

function defined in module Flux.Optimise


			stop()

Call Flux.stop() in a callback to indicate when a callback condition is met. This will trigger the train loop to stop and exit.

Note

Flux.stop() will be removed from Flux 0.14. It should be replaced with break in an ordinary for loop.

Examples


			
			
			
			cb
			 
			=
			 
			
			function
			 
			
			(
			)
			
			
  
			
			
			

	
			accuracy
			(
			)
			 
			>
			 
			0.9
			 
			&&
			 
			
			

	
			Flux
			.
			
			stop
			(
			)
			

			end
Methods

There is 1 method for Flux.Optimise.stop: