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, Tips
When using Python, a common error you may encounter is modulenotfounderror: no module named ‘keras’. This error occurs when Python cannot detect the Keras library in your current environment. Keras does not come with the default Python installation. This...
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...