Topic

python

26 posts

Stats with Python: Rank Correlation

Stats with Python: Rank Correlation

The correlation coefficient is a familiar statistic, but there are several variations whose differences should be noted. This post recaps the definitions of these common measures.

2021-02-06 · 5 min read · EN
Stats with Python: Unbiased Variance

Stats with Python: Unbiased Variance

What is unbiased sample variance? Why divide by n-1? With a little programming with Python, it's easier to understand.

2021-01-17 · 4 min read · EN
How I Built 🍣This Sushi Does Not Exist🍣

How I Built 🍣This Sushi Does Not Exist🍣

Lightweight GAN has opened the way for generating fine images with ~100 training samples and affordable computing resources. This post presents "This Sushi Does Not Exist" and how I built it with GAE.

2020-12-19 · 3 min read · EN
Custom Objective for LightGBM

Custom Objective for LightGBM

If you want to use a custom loss function with a modern GBDT model, you'll need the first- and second-order derivatives. This post shows how to implement them, using LightGBM as an example

2020-11-22 · 4 min read · EN
Meet Pandas: Group-wise Sampling

Meet Pandas: Group-wise Sampling

This post introduces how to sample groups from a dataset, which is helpful when you want to avoid data leakage.

2020-10-13 · 2 min read · EN
Meet Pandas: Query Dataframe

Meet Pandas: Query Dataframe

This post introduces the Pandas method of `query`, which allows us to query dataframes in an SQL-like manner.

2020-08-25 · 1 min read · EN
Meet Pandas: Grouping and Boxplot

Meet Pandas: Grouping and Boxplot

This post summarizes how to group data by some variable and draw boxplots on it using Pandas and Seaborn.

2020-06-14 · 2 min read · EN
Reproducing Deep Double Descent

Reproducing Deep Double Descent

Double descent is one of the mysteries of modern machine learning. I reproduced the main results of the recent paper by Nakkiran et al. and posed some questions that occurred to me.

2020-06-13 · 7 min read · EN
Meet Pandas: loc, iloc, at & iat

Meet Pandas: loc, iloc, at & iat

Have you ever confused Pandas methods `loc`, `at`, and `iloc` with each other? It's no more confusing when you have this table in mind.

2020-04-27 · 2 min read · EN