Installing Nvidia driver, Cuda, cuDNN, TensorFlow, Keras & PyTorch in Ubuntu

Photo by freestocks on Unsplash

Installing Nvidia driver

Run these following commands. It adds the necessary repository to…


Writing elegant and efficient code using Map, Filter, Reduce, and lambda functions

Photo by Jakob Andreasen on Unsplash
from time import time_nsdef cubed(x):
return x**3
lambda_cubed = lambda x:x**3start = time_ns()print(f"Cube of 9 is {cubed(9)}")print(f"Time taken for previous method : {(time_ns()-start)//1_000} ms")start = time_ns()print(f"Cube of 9 is {lambda_cubed(9)}")print(f"Time taken for previous lambda : {(time_ns()-start)//1_000} ms")start = time_ns()
print(f"Cube of 9 is {(lambda x:x**3)(9)}")
print(f"Time taken for inline lambda : {(time_ns()-start)//1_000} ms")


Image by Edmund Fung from Pixabay

Derivatives

What is the derivative of a function? The derivative is a measure of how the function behaves with little changes in the parameters of the function. Let’s dumb it down further.


Statistics

Understanding how probability plays a huge role in the casino business

Photo by Kvnga on Unsplash

Probability

Probability is defined as the ratio of the number of desired outcomes and the number of total outcomes. If you…


Getting started with NumPy

Photo by Pawel Czerwinski on Unsplash

Numpy

Numpy is a python library popular in the data science community. It can be used for multidimensional large array manipulation. It is also used for mathematical operations on arrays.

import numpy as np

Numpy array creation

Numpy arrays are homogeneous data structures, the data in an array has to be of the same data type.

>>> a_list = [1,2,3,4,5,6,7,8,9]
>>> a_arr=np.array(a_list) …


Some useful examples of using Python List

Photo by Adeolu Eletu on Unsplash

List

List indexing

Python list indexing is Zero-based indexing. In which 1st element is indexed as 0, the second element is indexed as 1 as so on…

>>> a_list=['first','second','third','fourth']
>>> print(a_list[0])
first
>>> print(a_list[1])
second
>>> print(a_list[-1])
fourth
>>> print(a_list[-2])…


Image Reference: Engineering and Technology
  1. Then his/her job is to make his/her teammate(s) understand the name of the movie by acting without saying a word.


Photo by Chad Greiter on Unsplash

Kantajit Shaw

Deep learning enthusiast, interested in Computer Vision and Natural Language Processing problems.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store