|
if not np.isfinite(covmean).all(): |
|
msg = "fid calculation produces singular product; adding %s to diagonal of cov estimates" % eps |
|
warnings.warn(msg) |
The warnings module need be import explicitly. I got a error that the name is not defined by Python3.6, although it is usually not happened because the branch is often skipped.