Below the code
import numpy as np np.random.seed(0) from sklearn import datasets import matplotlib.pyplot as plt %matplotlib inline %config Inlin
You need update TensorFlow. You can try with
pip install tensorflow==2.0.0
or, if you use gpu version
pip install tensorflow-gpu==2.0.0
For more details, in this issue follow this answer