Relative Content

Tag Archive for tensorflow2.0logistic-regressiontf.keras

Logistic regression by high level tensorflow keras API : wrong result

First implemented logistic regression using tensorflow keras low-level api. Then using high-level keras API implemented the same algorithm but loss/cost and accuracies are different. Low-level answer is correct as it matches logistic regression by scratch of deeplearning.ai. Google colab links of files is attached.
below is low-level api logistic regression code which is giving correct output: