numpy no longer has an np.asscalar
numpy no longer has an np.asscalar
DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead
numpy no longer has an np.asscalar
DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead