What to do if you get a TypeError with numpy min, max

x_min, x_max = X[:, 0].min - 0.5, X[:, 0].max + 0.5

TypeError Traceback (most recent call last) in () ----> 1 x_min, x_max = X[:, 0].min - 0.5, X[:, 0].max + 0.5

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

What to do if you get a TypeError with numpy min, max
What to do if you get a UnicodeDecodeError with pip install
What to do if you get a minus zero in Python
What to do if you get lost in file reference with FileNotFoundError
What to do if you get Could not fetch URL 443 with pip
What to do if you get a "No versions found" error in pipenv
What to do if you get an error when installing python with pyenv
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you can't install pyaudio with pip #Python
What to do if you can't build your project with Maven
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if you can't find well with grep's -f option
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you can't pipenv shell
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if an error occurs when importing numpy with VScode
What to do if you get an error when trying to load mnist
What to do if you can't install with pip in babun environment
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get a Permission denied (public key) error when trying to pull on Github
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if you can't pip install mysqlclient
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
Links to do what you want with Sublime Text
What to do if a UnicodeDecodeError occurs in pip
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an "unknown service" error from your gRPC server
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
[AWS] What to do when you want to pip with Lambda
What to do if you are addicted to Windows character code
What to do if pip gives a DistributionError in Homebrew
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you can't log in as root
What to do if you can't use WiFi on Linux
What to do if you lose your EC2 key pair
What to do if yum breaks
What to do with Magics install
Make a note of what you want to do in the future with Raspberry Pi
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do to get tensorflow-gpu to work
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get an error when running "certbot renew" in CakePHP environment
Python | What you can do with Python
A note on what you did to use Flycheck with Python
What to do if intellisense doesn't work with Anaconda + VSCode + Tensorflow2.1