Machine Learning, TensorFlow, JavaScript, Javascript Development, Tensorflowjs.
set, its wise to use sigmoid with more layers as it could produce a better fit in model to the actual data set. After defining the layers we need to specify the loss function and the optimizer to minimize the loss. Here we have added only a single layer of 1 unit. Please note the inputDim as 1 as