Error: float() argument must be a string or a number, not ‘dict_values’

float() argument must be a string or a number, not ‘dict_values’

Use list(accuracy.values()) while plotting accuracy and loss

1 Like

Please Sir,
this is my code I try to run but this error appears , can you kindly help me to fix please
def interpolation(noisy , SNR , Number_of_pilot , interp):

noisy_image = np.zeros((40000,72,14,2))



noisy_image[:,:,:,0] = np.real(noisy)

noisy_image[:,:,:,1] = np.imag(noisy)

TypeError: float() argument must be a string or a number, not ‘dict’