metrics.jl

FluxTraining/functional/metrics.jl is a source file in module FluxTraining

			
			
			
			function
			 
			

	
			accuracy
			(
			y_pred
			,
			 
			y
			)
			
			
    
			
			return
			 
			
			mean
			(
			
			
			onecold
			(
			y_pred
			)
			 
			.==
			 
			
			onecold
			(
			y
			)
			)
			

			end