Dev Notes

Programming tips and library usage notes on tools such as numpy, pandas, scikit-learn, bash, SQL, and TensorFlow.

[2026-05-01] : Removed several outdated articles.

2023

[sympy] Probability and Statistics with SymPy

Uses SymPy to symbolically derive the binomial-to-Poisson distribution limit and perform maximum likelihood estimation with Fisher information for the normal distribution.

[sympy] Symbolic Mathematics with SymPy

Introduces the basics of SymPy, covering symbolic expansion, factorization, equation solving, differentiation, integration, and matrix operations with simple examples.

[sqlite3] How to Use EXISTS and IN

Explains when to use SQL's EXISTS versus IN using a customers and orders example, covering differences in NULL handling and query performance.

[sqlite3] Utilizing Self Join

Explains SQL self joins using an employee-manager hierarchy example, showing how to join a table with itself using aliases to look up related rows.

[sqlite3] Utilizing CASE Expressions

Explains how to use SQL's CASE expression to assign grades based on scores and combine it with aggregate functions to build conditional cross-tabulation queries.

[sqlite3] Common Table Expressions (CTE)

Explains SQL Common Table Expressions (CTEs) by comparing a subquery-based query with a CTE-based rewrite to show improved readability and reusability.

[sqlite3] Window Functions

Explains the differences between SQL window functions RANK, DENSE_RANK, and ROW_NUMBER for ranking data with tied scores, using a sample student scores table.

2022

[pytorch] Inverting Arrays

Explains how to invert 1D and 2D tensors in PyTorch using torch.flip and torch.fliplr, comparing them with NumPy's slice-based array reversal with code examples.

2021

2020

[keras] Basics of keras and RNN

Explains the basics of Recurrent Neural Networks (RNN) in Keras by training a model on a damped oscillation curve as sample time-series data.

[keras] Basics of keras and LSTM

Explains the basics of LSTM in Keras and compares it with a simple RNN by building models trained on a damped oscillation curve as sample data.

[keras] Basics of keras and GRU

Explains the basics of the GRU model in Keras and compares it with LSTM using a damped oscillation curve as sample time-series data.