Class labels can be converted to OneHot encoded array using keras.utils.to_categorical.The resultant array has number of rows equal to the number of samples, and number of columns equal to the number…
np.concatenate is used for concatenating numpy arrays.We will discuss here some of the functionalities of this method of numpy arrays.It takes a list of two or more arrays as input argument,…
Lists in python are collection of objects. They can include any python objects such as numerals, strings, other lists and dictionaries. The list is defined by square bracket as follows:…
Loops are used when one wants to repeat a set of statements several times (iterations). For example, when you want to apply a set of operations on elements of a…
Many a times we will encounter a situation where we have to iterate over a group of statements until a specific condition is met. The number iterations that the loop…
Earlier we saw how to write functions in python and how to call them in our program. For those functions, the number of inputs or arguments were defined. They took…
Functions are sets of statements that perform a specific task. They can be called by their names, more than once in a program. Inputs can be given to functions based…
To train a tensorfow model, we call the fit() method of the model as follows: Python The fit() method returns something called as a History object. It stores the epochwise values of the loss and any…
In our first project of tensorflow, we used the fashion-mnist data to make a simple deep learning model to identify whether any given image is of a trouser or a bag. We…
We will try to build a deep learning model that differentiates between images of two kinds of objects. For this we will use the fashion mnist data which could be…
Dictionaries are collection of objects which can be indexed using their keys. A dictionary contains items, which are key:value pairs. For one key in a dictionary, there can be only one value.…
Helpful books
