The Tensorflow library integrates neurons for linear and logistic regressions, demonstrating the library’s capabilities in implementing fundamental components of neural networks efficiently.
Author
Vraj Shah
Published
September 1, 2023
Importing Packages
import matplotlib.pyplot as pltimport numpy as npimport tensorflow as tffrom tensorflow.keras import Sequential
WARNING:tensorflow:From C:\Users\vrajs\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
model = Sequential( [ tf.keras.layers.Dense(1, input_dim=1, activation='linear', name='L1') ])
WARNING:tensorflow:From C:\Users\vrajs\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\src\backend.py:873: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.