Tag: python

  • Tensorflow: The History Object

    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 metrics we have asked the model to track. These records can be used to visualize how the training process occurred and potentially help us modify…

  • Tensorflow: Basic deep learning workflow for classification task

    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 labelled the trouser images as class 0, and images of bag as class 1. In our neural network, the last output layer was as follows: Python As…

  • Python dictionary

    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. Multiple keys can have same values. A dictionary can be created using a curly bracket, {}, or using dict() function. Python Python If we have to create a…