蠎加载 145
原文: Import Python Weekly Newsletter - Issue No 145 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 用 Python 和条件随机字段进行拉丁语分词 NLP In this article, a CRF (Conditional Random Field) will be trained to learn how to segment Latin text. Using only very basic features and easily accessible training data, we are going to achieve a segmentation accuracy of 98 %. Python 中的 K均值聚类 machine learning Clustering is a type of Unsupervised learning. This is very often used when you don’t have labeled data. K-Means Clustering is one of the popular clustering algorithm. The goal of this algorithm is to find groups(clusters) in the given data. In this post we will implement K-Means algorithm using Python from scratch. Lifelong Rubyist 使一些 Python 代码 5x 加速 performance n this post I’m going to look at a bit of Python code I optimized recently, and then compare the process of making this code faster to the process of how I make Ruby code faster. Alice 在 Python 项目中 core-python Python project structure and packaging can be intimidating, but, if you take it step by step, it doesn’t have to be. Look at other people’s code, particularly smaller, modular projects, break the work up into pieces, and work through it piece by piece, until you’re all the way down the rabbit hole. (是也乎: 项目代码/结构的腐化速度和项目的活跃度是直接关联的 ) WSGI 还未够班 — 第一部分 wsgi This is the first part of a multi-part series discussing the limitation of WSGI-based Python web applications and the ways to overcome these limitations. WSGI 还未够班 — 第二部分 wsgi In the first part of this series we discussed the problems and limitations which inheres within WSGI-based Python web applications. In this part we will discuss what concurrency is and what is an event driven architecture Go vs CPython: 并发和并行选项的可视化对决 concurrency, parallelism Using MPG diagrams to see the differences between Threading, Multiprocessing and Asyncio, the 3 official CPython options, and Go Runtime. (是也乎: 对 google/grumpy: Grumpy is a Python to Go source code transcompiler and runtime. 的强烈召唤.. ) 用 Python 评估风险和返回事件的概率 statistics, quant There are various situations where quants look at different scenarios of an event when making investment decisions. Running simulated scenarios is an invaluable tool for all finance/investment managers as it allows them to measure likely performance for various states. 监视,记录和提醒 Linux 上 CPU 的过载 code snippets I wrote a Python script (GitHub) that does a few things. First and foremost, I wanted to know every minute on the minute what my CPU core temps were regardless of whether I’m getting throttled or not so that I had the option to chart this (I haven’t done this, as I think I’ve found the culprit but I wanted to keep my options open). I also wanted to know if my laptop fan was functioning as desired in relation to the CPU temps, so I needed to grab fan RPM. (是也乎: Lenovo T420s 上运行的 Linux 中的自制监察脚本… tstringer/linux-core-temperature-monitor: Script (meant to run via cron) to monitor, log, and alert when the CPU is throttled due to overheating 可是 Glances 全部嗯哼了哪… ) 搞一个 BT Torrent 客户端:第1步 code snippets 介绍在 Python 中使用 NetworkX 进行图形优化 networkx This NetworkX tutorial will show you how to do graph optimization in Python by solving the Chinese Postman Problem in Python. (是也乎: 是的, 完备的了… ) 设计 Python 固定大小的散列图 core-python, dict implement a fixed-size hash map that associates string keys with arbitrary data object references. Flask-SocketIO flask Flask-SocketIO gives Flask applications access to low latency bi-directional communications between the clients and the server. The client-side application can use any of the SocketIO official clients libraries in Javascript, C++, Java and Swift, or any compatible client to establish a permanent connection to the server. Python Release Python 3.6.3 new release Python 3.6.3 is the third maintenance release of Python 3.6. The Python 3.6 series contains many new features and optimizations. See the What’s New In Python 3.6 document for more information. 用 Spark 交互分析 100GB 的 JSON 数据 spark Do you know what is the heaviest book ever printed? Let’s find out by exploring the Open Library data set using Spark in Python. (是也乎: 港真, 100G 现在只是小数据了… 关键是 Open Library 数据集的存在, 用来找最重的书? ) Parallel Processing in Python multiprocessing 好物 ~ 包/模块/库/片段… ...