metrics.jl

FastAI/training/metrics.jl is a source file in module FastAI

			
			
			
			function
			 
			

	
			accuracy_thresh
			(
			ŷs
			,
			 
			ys
			,
			 
			
			thresh
			 
			=
			 
			0.5
			)
			
			
    
			
			mean
			(
			
			(
			
			
			sigmoid
			.
			
			(
			ŷs
			)
			 
			.>
			 
			thresh
			)
			 
			.==
			 
			ys
			)
			

			end