Home>

I tried to implement logistic regression using TensorFlow, but I got an error.

I personally think that this is caused by TensorSpec (the book used placeholders), but I'm not sure. The environment is Anaconda, JupyterLab.
I would appreciate your reply.

Code

Error

  • Answer # 1

    What is the reason for changing the book description?
    Maybe you couldn't use placeholders, but if so, let's set the tensorflow version to 1 instead of 2.

Related articles