## Estimation of Value of Pi in Different Dimension

Estimation of Value of Pi From Area of Circle in Two Dimension Using Monte Carlo import random import math import numpy as np import matplotlib.pyplot as plt N = [100,1000,10000,100000,100000] E = [] true_value = 3.141592 for j in range(len(N)): c= 0 s = 0 I = 0 for i in range(N[j]): x = random.random() […]

## Working With Datetime in Python

Working with DateTime in Python can be a challenging job if we do not know the right module to do the right thing. Here we will explore some of the useful modules based on their purpose and application rather than exploring the module as a whole. Using datetime Datetime in Python can be done using […]

## PCA From Scratch In Python

PCA is a method of dimensional reduction. When a machine learning method has a large number of features, we must choose the features that contribute the most and ignore the datasets that are less significant. This is where PCA comes into play. Consequently, PCA is an unsupervised method for choosing useful datasets from a huge […]

## Intro to OpenCV for Image Processing with Python

OpenCV is a multi-platform Image Processing tool which provides lots of algorithms and processes. This notebook was written in 2019 by me when I was just learning, and I missed to add the author of images used from the internet. All images are taken from the internet and credit goes to original authors. Contains Introduction […]

## How to calculate integration using Monte Carlo Method?

Introduction In mathematics, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data. The process of finding integrals is called integration source. To solve the many Data Science problem we should use integration. In Data Science we need to use not only […]

## Python Generators

Python Generators are kind of iterators which allows us to iterate through the values returned through the function using yield keyword. In simple words, generators are the function with yield keyword instead of return. Some of benefits of using Python Generators are: They return data as a iterator rather than a whole sequence making it […]

## How Can We Generate Random Number From Congruential Method?

What is Random Number A random number is one that is selected at random, as the name suggests, from a group of numbers. As they tend to be excessively slow for most applications in statistics and cryptography, the first methods for producing random numbers, such as dice, coin flipping, and roulette wheels, are still employed […]

## Intro to CNN with Keras

CNN with Keras is easiest way to create CNN (Convolutional Neural Networks. But Why? Images I used in this blog are not owned by me and the full credit goes to the author of images. This blog was written in 2019 but I forgot to publish it that time and does not contain everything. Why […]

## News Classification with Simple Neural Network

News Classification with Simple Neural Network is one of the application of Deep Learning. And here in this part of the blog, I am going to perform a Nepali News Classification. Before jumping into the main part, I would love to share some of my previous contents based upon which this blog has been written. […]

## MySQL Prepared Statements

MySQL Prepared Statements are the queries or statements they are prepared in a way that they can be used later on. They are complied while on creation and can be executed later as desired. We might need to run prepared statements many times once its created. Lets get little bit deep into it and how […]

Scroll to top