fbpx

Browsing Tag: python

Natural Language Processing Python

NLP with Hugging Face Transformer

If we want state of the art transformer package for Natural Language Processing (NLP), then I would highly recommend Hugging Face Transformer The Hugging …

Algorithmic Trading Python

Visualize Stock Price Time Series

In this blog, we will show how to import the stock price time series from Yahoo Finance and visualize using Pandas. To import data …

Algorithmic Trading Python

Algorithmic Trading with Python

Algorithmic trading (also called automated trading, black-box trading, or algo-trading) uses a computer program that follows a defined set of instructions (an algorithm) to …

Python Statistics

Compute Binomial Distribution using Python from Scratch

Binomial distribution model is an important probability model that is used widely when there are two possible outcomes, for example positive reviews and negative …

Python Pytorch

Transfer Learning with Pytorch

Transfer learning is a powerful way to solve overfitting issue related to small dataset. Pytorch Training is a powerful deep learning framework to implement …

Pandas Python Scikit Learn

Convert Categorical Features to Integers with Scikit Learn

Machine Learning requires all the categorical features to be numbers. Often we need to convert the categorical text to integers. We can readily do …

Python Pytorch

Linear Regression with Pytorch

There are two ways to compute a simple linear regression using Pytorch. One is to use the optimizer update method, and one is to …

Python Pytorch

Differences between pytorch.Tensor and pytorch.tensor

This article tries to clarify the differences between pytorch.Tensor and pytorch.tensor. As shown above. torch.Tensor is converting to Float, while torch.tensor will infer the …

Python Pytorch

Compute differentiation easily using Pytorch Autograd

Pytorch comes with a super easy method to compute differentiation – autograd (automatic gradient). To illustrate the method, consider the following differentiation $$ \begin{align} …

Numpy Python

Using Numpy to Study Pauli Matrices

Numpy has a lot of built in functions for linear algebra which is useful to study Pauli matrices conveniently. Define Pauli matrices $$ \sigma_1 …

Python

Python Decorator

Python decorator is callable that take in a function and modify the behaviour of the function without explicitly modify the function code. Let us …

Algorithms Tree Search

K-D Tree Search Algorithm for SLAM

A K-D Tree (also called as K-Dimensional Tree) is a binary search tree where data in each node is a K-Dimensional point in space. …