Author: datahacker.rs

#004 TF 2.0 TensorFlow Wrappers

Highlights: In this post we are going to talk more about TensorFlow Wrappers. We are going to compare things before and after TensorFlow 2.0. This post will be the introductory one to the series of posts where we are going to build a wide variety of neural networks. To use TensorFlow in our projects, we need to learn how to program using the TensorFlow API. TensorFlow has multiple APIs that can be used to interact with…
Read more

#003 TF 2.0 Eager Execution- A Pythonic way of using TensorFlow

TensorFlow uses Eager execution, which is a more convenient way to execute the code, and also more “Pythonic”. It is a default choice in the latest version TensorFlow 2.0. In TensorFlow 1.x, we first need to write a Python program that constructs a graph for our computation, the program then invokes Session.run(), which hands the graph off for execution to the C++ runtime. This type of programming is called declarative programming (specification of the computation…
Read more

#002 TF 2.0 An Introduction to TensorFlow 2.0

Highlights: In this post we are going to talk more about what are TensorFlow data model elements. Those are elements like Constants and Variables. So let’s see how we can create an operation like \(c = a*b\) and run it with the following lines of code. TensorFlow data model elements There are certain programming elements in TensorFlow that are essential for writing any TensorFlow code like Constants and Variables. These data model elements are used…
Read more

#001 TF 2.0 An Introduction to TensorFlow 2.0

What is TensorFlow 2.0? TensorFlow is an open-source library for numerical computations built by Google Brain team. TensorFlow is based on the data flow graphs. Moreover, it actually allows developers to create data flow graphs—structures that describe how data moves through a graph, or a series of processing nodes. Each node in the graph represents a mathematical operation, and each connection or edge between nodes is a multidimensional data array or a tensor. If we…
Read more

#TF Logistic Regression in TensorFlow

In this post we will see how to implement Logistic Regression in TensorFlow. Let’s generate a dataset using random values. It’s very crucial to check the size of your array. Let’s split our dataset into a train and test set. For the training set 80% of the original dataset would be used, while the remaining 20% would be used for testing. Let’s set the parameters which would be used in training our model. Now, let’s…
Read more