Code in Python
Machine Learning and Deep Learning Blogs

Author: Akarsh Singh (page 1 of 2)

Understanding TensorFlow for noobs

Deep Learning is a trending field in Computer Science. It is a subset of Machine Learning and Artificial Intelligence. Tensorflow is an open source Machine Learning Library developed by Google that supports neural networks and other Deep learning models. In this tutorial series, we will learn more about Tensorflow and construct deep learning models on […]

Deep Learning Tensorflow vs Keras vs PyTorch

What is Deep Learning? Deep learning is the application of artificial neural networks (ANNs) to learn tasks. These tasks contain more than one hidden layer. Deep learning is part of a broader family of machine learning. Machine learning itself is a part of Artificial Intelligence(AI). It is something like this Artificial Intelligence > Machine Learning […]

NumPy Array Indexing and Slicing

Numpy offers several ways to index into arrays. As mentioned earlier, items in numpy array object follow zero-based index. The three types of indexing methods that are followed in numpy  − field access, basic slicing, and advanced indexing. Here are the 3 topics we will look into in this article: 1)    Slicing 2)    Integer array […]

Learn more about NumPy Array and its operations

NumPy Array Creation Numpy provides many functions to create arrays. For Example: a = np.array([1, 2, 3, 4, 5, 6, 7]) Note that the np.array() takes only one input parameter, that is a list of elements. If you want to create a multi-dimensional array, then pass tuples of numbers on the list. For example: b […]

Learn more about NumPy, NdArrays and its attributes

Numpy is a python library to create homogeneous multidimensional arrays and provide tools for working with these arrays. The elements of numpy array are of the same type. One can create an array in Python using lists or array() function. The advantage of using Numpy array is it scales better and takes less memory when […]

Learn about Classes and Objects in Python

The object oriented concepts in Python programming can be implemented using classes and objects. In this article, you will learn how to create class and object. Creating Classes – class ClassName: class_body The class_body consists of all the components to define the class members such as data attributes and functions. Below is the example for […]

Object Oriented Programming in Python

Python supports object-oriented programming. For those of you who already have a background in another programming language, the concept of object-oriented programming in Python is similar. For our programming beginners, this article will explain the concepts of object oriented programming. Earlier before the object-oriented programming was introduced, programming languages used to follow procedural programming paradigm. […]

How to work with while loop in Python

While is a type of looping statement where the number times of the statement will iterate is decided by the condition of the loop. If the condition is true then the loop will execute otherwise it will terminate and will execute statement after the loop. While is an entry controlled loop where the condition of […]

How to work with for loop in Python

For loop is a looping statement that is used when it is known beforehand how many times the loop has to run. Therefore it is already defined the number of times for loop will iterate. The for loop has an ability to iterate over any kind of sequential data types like list or string. The […]

Learn about Loops and Control Statements in Python

In general, in any programming language statements are executed sequentially. The first statement in our code is executed first, followed by the second statement, and so on. There may be a situation when you need to execute a block of code several numbers of times. Putting that block of code in loop helps to execute […]

Older posts

© 2018 Code in Python