author
Publish Date / Update Date

Setting Up a Local LaTeX Environment: Build Your Own Overleaf with TeX Live and VS Code

Have you ever been frustrated by Overleaf's compilation timeouts? Or encountered network issues that prevented you from compiling online? Maybe you're a beginner learning to typeset with LaTeX? This article will guide you step by step through installing the TeX Live distribution on your own computer and using VS Code as your LaTeX editor.

Notes on Creating Python Modules

Recently, I've been learning how to package Python code for quick sharing and easy installation. After exploring various distribution methods, I realized that creating a Python module is probably one of the most convenient options, mainly because it saves me from having to reinstall everything repeatedly.

From Gradient Descent to Stochastic Gradient Descent

Cover image was generated by ChatGPT.

Gradient descent is an iterative method used in most modern models to help find optimal parameters. However, in today’s era of big data, the massive amount of data results in significant time costs for gradient descent. One key goal is to compute parameters quickly without sacrificing accuracy.

Sampling Methods

Cover image generated by ChatGPT.

Why do we need sampling? What are the benefits for data analysis? When building models, we sometimes find that the amount of data required for training is too large, which prolongs the training time. The purpose of sampling is to select a representative finite sample from a large population and perform statistical analysis on it, thereby inferring the characteristics or properties of the overall population.

From this, we can see that a sample is a subset of the population. Sampling methods refer to how we reasonably select a subset of the population as a sample. Since the sample size is smaller than the population, we hope that the sample statistics calculated from the selected sample approximate the population statistics, minimizing the bias introduced by sampling.

Logistic Regression

The cover image was generated by ChatGPT.

Introduction

Logistic regression is a type of binary classification model derived from linear regression. Unlike linear regression, which fits a regression line that passes through the data points by minimizing the sum of squared distances, known as the least squares method. The goal of logistic regression is to find a decision boundary that clearly separates the data into two distinct classes.