Scaler Ads

Python

Python

Decorators in Python – How to enhance functions without changing the code?

Decorators in python allow you to dynamically change the functionality of another function, without altering it’s code. What? Is that possible? Yes. This covers: 1. What is a decorator and how to create one? 2. Easier way to decorate functions 3. Class decorators 4. Problem with docstrings on decorated functions and how to solve. What …

Decorators in Python – How to enhance functions without changing the code? Read More »

Python

Generators in Python – How to lazily return values only when needed and save memory?

Generators in python provide an efficient way of generating numbers or objects as and when needed, without having to store all the values in memory beforehand. Introduction You can think of Generators as a simple way of creating iterators without having to create a class with __iter__() and __next__() methods. So how to create a …

Generators in Python – How to lazily return values only when needed and save memory? Read More »

Python

Object Oriented Programming (OOPS) in Python

Object oriented programming is an effective way of writing code. You create classes which are python objects, that represented meaningful entities which defines its own behaviour (via methods) and attributes. Let’s understand what a class is and the concepts behind Object Oriented Programming in Python Everything you have encountered so far in Python, such as …

Object Oriented Programming (OOPS) in Python Read More »

Numpy Feature Image

How to use Numpy Random Function in Python

How to use numpy.random.rand() function ? numpy.random.rand() function is used to generate random float values from an uniform distribution over [0,1). These values can be extracted as a single value or in arrays of any dimension. In this article, you will learn about various use cases of this function. Structural overview of numpy.random.rand() Syntax: numpy.random.rand(d0, …

How to use Numpy Random Function in Python Read More »

dask parallel computing in python

Dask – How to handle large dataframes in python using parallel computing

Dask provides efficient parallelization for data analytics in python. Dask Dataframes allows you to work with large datasets for both data manipulation and building ML models with only minimal code changes. It is open source and works well with python libraries like NumPy, scikit-learn, etc. Let’s understand how to use Dask with hands-on examples. Dask …

Dask – How to handle large dataframes in python using parallel computing Read More »

How to use tf.function to speed up Python code in Tensorflow

tf.function is a decorator function provided by Tensorflow 2.0 that converts regular python code to a callable Tensorflow graph function, which is usually more performant and python independent. It is used to create portable Tensorflow models.       Introduction Tensorflow released the second version of the library in September 2019. This version, popularly called …

How to use tf.function to speed up Python code in Tensorflow Read More »

Tensorflow

TensorFlow vs PyTorch – A Detailed Comparison

Compare the popular deep learning frameworks: Tensorflow vs Pytorch. We will go into the details behind how TensorFlow 1.x, TensorFlow 2.0 and PyTorch compare against eachother. And how does keras fit in here. Table of Contents: Introduction Tensorflow: 1.x vs 2 Difference between static and dynamic computation graph Keras integration or rather centralization What is …

TensorFlow vs PyTorch – A Detailed Comparison Read More »

Python JSON

Python JSON – Guide

JSON stands for JavaScript Object Notation. JSON is a lightweight data format used for data interchange between multiple different languages. It is easy to read for humans and easily parsed by machines. CONTENTS Brief Overview Purpose of JSON Serializing JSON dumps() function dump() function Deserializing JSON loads() function load() function Complex number encoding Complex JSON …

Python JSON – Guide Read More »

datetime in Python

datetime in Python – Simplified Guide with Clear Examples

datetime is the standard module for working with dates in python. It provides 4 main objects for date and time operations: datetime, date, time and timedelta. In this post you will learn how to do all sorts of operations with these objects and solve date-time related practice problems (easy to hard) in Python. datetime in …

datetime in Python – Simplified Guide with Clear Examples Read More »

Course Preview

Machine Learning A-Z™: Hands-On Python & R In Data Science

Free Sample Videos:

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science