A Fast Method to Create Synthetic Data with Python

Python package available in PyPI: synloc

I have been working on a project to create synthetic data. I mostly used the R package synthpop in the project. I have been thinking about a very simple algorithm to create synthetic data using the nearest neighbor algorithm since then. I have created a Python package named synloc. I discuss the practical and theoretical here: Generating Synthetic Data with The Nearest Neighbors Algorithm [Read More]

Reducing Matrix Computation Time in R

Using sparseMatrix from Matrix package

In order to increase computation time, I transformed loops into matrix operations in an algorithm. Nevertheless, my matrices were extremely large, and thus computation was slower than I expected. I was using the %*% operator in R to do matrix multiplication. I found out that it is not possible to achieve dramatically faster computations with other background programming languages (e.g., using Rcppor JuliaCall). I tried and failed. [Read More]

Lazy (Deferred) Loading YouTube Videos in Jekyll Posts

A JavaScript for Easy Embedding Youtube Videos

I noticed that my Jekyll posts with YouTube videos open very slow. I checked pagespeed.web.dev and got 30/100 score for video-embedded posts. Using the script in this repository, I created a simple method that easily embeds YouTube videos into Jekyll posts. With this lazy-loading script, my posts get 71/100 score. It is easy to implement and use. [Read More]