LogMetrics

struct defined in module FluxTraining


			LogMetrics(backends...) <: Callback

Callback that logs step and epoch metrics to one or more LoggerBackend s.

See also LoggerBackend , Loggables.Loggable , log_to ,
TensorBoardBackend

Example:


			
			
			
			logcb
			
			 
			
			=
			
			 
			
			
	
		
			LogMetrics
			
			(
			
			
	
		
			TensorBoardBackend
			
			(
			
			"
			
			tblogs
			
			"
			
			)
			
			)
			
			

			
			
	
		
			Learner
			
			(
			
			model
			
			,
			
			 
			
			lossfn
			
			
			;
			
			 
			
			
			callbacks
			
			=
			
			
			[
			
			
	
		
			Metrics
			
			(
			
	
		
			accuracy
			
			)
			
			,
			
			 
			
			logcb
			
			]
			
			)
Methods

There is 1 method for LogMetrics:

LogMetrics(backends...)
callbacks/logging/logger.jl:54