This guide explains what Canonical Correlation Analysis (CCA) is, how it differs from PCA, and how to run and interpret a simple CCA workflow in Python with sklearn.……
阅读全文
The concordance index, or c-index, is a common survival-analysis metric for ranking quality. This guide explains what it measures, how to compute it with Python lifelines, and why ordering matters more than exact values.……
阅读全文
This article uses small examples to compare Python lists and NumPy arrays, focusing on what they do differently in summation, products, and numeric computing workflows.……
阅读全文
This tutorial shows how to build a random forest regression workflow with Python and sklearn using Shanghai weather data, covering setup, cleaning, feature engineering, training, evaluation, and prediction.……
阅读全文
This guide explains how to solve LeetCode 468 in Python by combining the ipaddress module with the stricter problem-specific rules for IPv4 and IPv6.……
阅读全文
The Gini coefficient and Lorenz curve are widely used to represent data inequality, especially wealth inequality. However, currently in Python, there isn’t a very good function to directly plot the Lorenz curve. Since the current project requires it, this article records how to use numpy, pandas, matplotlib, and other packages to calculate the Gini coefficient and plot the Lorenz curve for practical use.……
阅读全文
This guide shows how to use Python folium to build a global choropleth map from public COVID-19 data, including WHO data loading, country-code mapping, and log-based styling for better readability.……
阅读全文
This tutorial uses a simple quadratic function to explain the core idea of gradient descent, including the gradient direction, learning rate, stopping condition, and a step-by-step Python implementation.……
阅读全文
This article shows how skewed distributions can make the mean and the median tell very different stories, and why that difference often creates misleading “above average” claims in real life.……
阅读全文
2019年5月17日
|
Miscellaneous
This article explains the conversion rule between ordinary URLs and thunder:// Xunlei links, and gives both Python and JavaScript examples for encoding and decoding.……
阅读全文
This article explains Manacher’s algorithm for the longest palindromic substring problem, including the transformed string idea and the Len array that allow it to run in $O(n)$ time.……
阅读全文
This article compares several common ways to find shared values between two Python lists and explains which methods remove duplicates and which ones preserve list order.……
阅读全文