Open in app

Sign In

Write

Sign In

Shailesh Kumar
Shailesh Kumar

102 Followers

Home

About

Published in Towards Data Science

·Pinned

Vectorizing computations on pairs of elements in an nd-array

In Python with NumPy — Consider a very simple contrived problem below. You have an array of numbers: import numpy as np a = np.array([0, 10, -3, 5, 7, 20, -9]) and you want to compute the mean absolute difference between each pair of numbers. Let n be the number of elements in a. Then…

Python

4 min read

Vectorizing computations on pairs of elements in an nd-array
Vectorizing computations on pairs of elements in an nd-array
Python

4 min read


Published in Towards Data Science

·Pinned

Understanding Discrete Convolution as Polynomial Multiplication

Convolution is a fundamental operation in digital signal processing — Convolution is a fundamental operation in digital signal processing. It is usually defined by the formula:

Convolution

4 min read

Understanding Discrete Convolution as Polynomial Multiplication
Understanding Discrete Convolution as Polynomial Multiplication
Convolution

4 min read


Published in Towards Data Science

·Pinned

Wavelet Transforms in Python with Google JAX

A simple data compression example — Wavelet transforms are one of the key tools for signal analysis. They are extensively used in science and engineering. Some of the specific applications include data compression, gait analysis, signal/image de-noising, digital communications, etc. This article focuses on a simple lossy data compression application by using the DWT (Discrete Wavelet…

Jax

8 min read

Wavelet Transforms in Python with Google JAX
Wavelet Transforms in Python with Google JAX
Jax

8 min read


Published in JavaScript in Plain English

·Pinned

My Favorite Vue Components

Reuse components to get off the ground quicker! — Vue.js is an elegant framework for front-end development in web applications. However, Vue by itself just provides the framework for building components. It doesn’t provide a collection of ready-to-use UI components. There are a number of great open-source projects providing useful Vue components (or component libraries) in the Vue ecosystem…

JavaScript

6 min read

My Favorite Vue Components
My Favorite Vue Components
JavaScript

6 min read


Published in Python in Plain English

·Pinned

Write Beautiful Python Documentation with Sphinx

With examples from real projects — Sphinx is an amazing tool for writing beautiful documentation. Originally created for the documentation of the Python programming language, it is now popular across numerous developer communities. Most major Python libraries are documented with Sphinx, e.g. NumPy, SciPy, Scikit-Learn, Matplotlib, Django. Several books have been written using Sphinx. …

Sphinx Doc

8 min read

Write Beautiful Python Documentation with Sphinx
Write Beautiful Python Documentation with Sphinx
Sphinx Doc

8 min read


Jun 25, 2022

On solving mate in n moves chess puzzles

I recently gave the following chess puzzle to the enthusiasts in my circle. White to win in 3 moves. One of my friends came up with the following two solutions: Solution 1: Re7+ Kf8, Qf7# Solution 2: Re7+ Kxf6, Qe6+ Kg5, Rg7# I had to emphasize that solution 2 is…

Chess

2 min read

On solving mate in n moves chess puzzles
On solving mate in n moves chess puzzles
Chess

2 min read


Published in Towards Data Science

·Aug 22, 2021

Implementing Linear Operators in Python with Google JAX

A review of linear operators A linear operator or a linear map is a mapping from a vector space to another vector space that preserves vector addition and scalar multiplication operations. …

Jax

9 min read

Implementing Linear Operators in Python with Google JAX
Implementing Linear Operators in Python with Google JAX
Jax

9 min read


Published in Python in Plain English

·Aug 9, 2021

Tips for Publishing Python packages on PyPI

For open-source Python developers, publishing packages on PyPI is an essential activity. PyPI is quite easy to use. However, there are some gotchas that can make life a bit difficult for beginners. This post is meant to provide some guidance so that unnecessary mistakes can be avoided. The comprehensive documentation…

Python

6 min read

Tips for Publishing Python packages on PyPI
Tips for Publishing Python packages on PyPI
Python

6 min read


Jul 4, 2021

Automatic deploys for efficient web development with GitHub + Netlify

Let tools take care of CI/CD so that you can focus on development. — Managing the delivery of a large web application requires a lot of work. Having some good continuous integration tools can help in significantly accelerating the development and review process. …

Continuous Integration

2 min read

Continuous Integration

2 min read


Published in Towards Data Science

·May 12, 2021

JAX First Impressions

Amazingly fast hardware independent numerical codes in Python — I have been exploring JAX library recently. It is a high performance library for numerical computing developed by Google engineers. Currently, it is a research library (no 1.0 yet) and is not an official Google product. However, it is gaining traction among machine learning engineers. …

Numerical Computation

4 min read

JAX First Impressions
JAX First Impressions
Numerical Computation

4 min read

Shailesh Kumar

Shailesh Kumar

102 Followers

Python | JavaScript | Web Applications | Math | Statistics | Computer Vision | Sparse Representations https://www.linkedin.com/in/shaileshkumar1729/

Following
  • Przemek Chojecki

    Przemek Chojecki

  • Synced

    Synced

  • Jeremie Harris

    Jeremie Harris

  • Tate Galbraith

    Tate Galbraith

  • Ben Zotto

    Ben Zotto

See all (173)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech