by Suf | Mar 27, 2022 | Programming, Python, Tips
In TensorFlow 2.0, tf.GraphDef is no longer in use. TensorFlow 2.0 encapsulates graph computations as Python functions instead of using Session making TensorFlow more Pythonic. If you want to continue using GraphDef in TensorFlow 2.0, use tf.compat.v1.Graphdef()...
by Suf | Mar 26, 2022 | Machine Learning, Programming, Python, Tips
TensorFlow 2 has integrated deep-learning Keras API as tensorflow.keras. If you try to import from the standalone Keras API with a Tensorflow 2 installed on your system, this can raise incompatibility issues, and you may raise the AttributeError: module...
by Suf | Mar 16, 2022 | Machine Learning, Programming, Python, PyTorch
Concatenating joins a sequence of tensors along an existing axis. The PyTorch function for concatenation is cat(). Stacking joins a sequence of tensors along a new axis. The PyTorch function for stacking is stack(). This tutorial will go through the two PyTorch...
by Suf | Jan 15, 2022 | Machine Learning, Programming, Python, TensorFlow, Tips
A common error you may encounter when using Python is modulenotfounderror: no module named ‘keras’. Keras comes packaged with Tensorflow 2.0 as tensorflow.keras. To import and start using Keras, you need to install TensorFlow 2. You can install TensorFlow...
by Suf | Jan 3, 2022 | Machine Learning, Programming, Python
This article will go through the sigmoid function formula, sigmoid function as an activation function, the ways to implement the sigmoid function in Python, and a brief history of the origins and applications of the sigmoid function. After reading through this...