Issue 446
Python 正式世界第二 原文: PyCoder’s Weekly - Issue #446 201111 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 201111 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 在 Python 中作 Key-Driver 分析 BRYCE MACHER Take a look at how statistical knowledge plays an important role in answering business questions like “What drives the winningness of candy?” Along the way you’ll learn how to do Key-Driver analysis in Python on a problem that can’t be easily solved with a call to a machine learning library. 用 Python Defaultdict 类型处理缺少的键 REAL PYTHON course In this step-by-step course, you’ll learn how the Python defaultdict type works and how to use it for handling missing keys when you’re working with dictionaries. You’ll also learn how to use a defaultdict to solve problems like grouping or counting the items in a sequence or collection. (是也乎: Defaultdict 每种新类型, 都需要长久的扫盲. ) 机器学习的距离度量 JAIME ZORNOZA Many machine learning algorithmns can be summarized as transforming data to n-dimensional vectors and computing similarity between points by means of some distance metric. This article explores four of these metrics—the Euclidean, Manhattan, Minkowski, and Hamming distances—and how to compute them with Python. 在 Python 中用 LRU 策略进行缓存 REAL PYTHON Caching is an essential optimization technique. In this tutorial, you’ll learn how to use Python’s @lru_cache decorator to cache the results of your functions using the LRU cache strategy. This is a powerful technique you can use to leverage the power of caching in your implementations. (是也乎: Least Recently Used (LRU) strategy 最小最新可用策略? ) ...