datahacker.rs@gmail.com

Category: Other

# K An implementation of a Shallow Neural Network in Keras – Moons dataset

In this post we will learn how to make classification of Moons dataset with a shallow neural network implemented in Keras. With the following code we are going to import all libraries that we will need. First, we will generate data set, then we will split it into training and test set. We will also print dimensions of these datasets. With the following code we will make a shallow neural network. Our shallow neural network…
Read more

#003 D TF Gradient Descent in TensorFlow

In this post we will see how to implement Gradient Descent using TensorFlow. First we will import all libraries that we will need in our code. Next, we will define our variable \(\omega \) and we will initialize it with \(-3 \). With the following peace of code we will also define our cost function \(J(\omega) = (\omega – 3)^2 \). With the next two lines of code we specify the initialization of our variables…
Read more

#TF Logistic Regression in TensorFlow

In this post we will see how to implement Logistic Regression in TensorFlow. We will start with importing libraries we will need in our code. In this post we will use some artificial datasets. To generate them we will use the following code. It is always good to check the size of matrices we use.  Next, we will  plot our datasets. With the next peace of code we will split our dataset in training set…
Read more

#023 CNN Object Detection

Object Detection We’ve learned about object localization as well as landmark detection, now let’s build an object detection algorithm. In this post we’ll learn how to use a \(convnet \) to perform object detection using a Sliding windows detection algorithm. Car detection – an example Let’s say we want to build a car detection algorithm. Some examples of a training set We can first create a labeled training set \((x,y) \) with closely cropped examples…
Read more