x_min, x_max = X[:, 0].min - 0.5, X[:, 0].max + 0.5
TypeError Traceback (most recent call last)
TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'float'
x_min, x_max = X[:, 0].min() - 0.5, X[:, 0].max() + 0.5
The error has disappeared.
Recommended Posts