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
Related articles
 logistic regression analysis in python
 python  about kaggle's titanic: logistic regression cannot analyze (separation of training data and test data)
 python  using tensorflow with jupyter, kernel crashes when cnn model fit
 python  (tensorflow) please teach the model setting that the final output value is an integer
 python 3x  tensorflow modelpredict () error
 python multiple regression analysis statsmodelsformula
 python  how to use tensorflow placeholder
 python  (tensorflow) please tell me how to convert any 28x28 image in the same way as the mnist image (pyrhon)
 python  (tensorflow) please tell me how to save and output image data mnist
 python  (tensorflow) please teach me how to connect labels and indexes
 python  regression analysis with statsmodels cannot resolve the error that it contains infinity or nan
 python  i want to reduce gpu memory usage with tensorflow, but it doesn't work
 python  tensorflow installed in virtual environment cannot be imported
 python  (tensorflow) does the amount of learning change automatically depending on the difference between gpu and cpu or the am
 python  i get an error when i try to do a simple regression analysis using sklearn
 python 3x  i want to make a scatter plot of the results of regression analysis
 python  data cannot be read from tensorflow_datasets of tensorflow
 python  about cpu and gpu of tensorflow (avx compatible)
 python  [tensorflow] module cannot be incorporated well
 python  using tensorflow with jupyter, kernel crashes when cnn model fit
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.