蠎加载 114

原文: Import Python Weekly Newsletter - Issue No 114 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… QueueLogger 和 Python JSON Logger logging Logging from multiple processes. 从文本中提取特征 machine learning This is my first time writing blog post about anything Python related. I go over the differences and how to use CountVectorizer() and TfidfVectorizer() from sci-kit learn. I’d love to hear what you think. (是也乎: 笔者说是第一篇 py 相关的嗯哼… ) Python 周聊: Emoji: Revisited video, emoji Special guest Katie McLaughlin will answer your questions about emoji: unicode, compatibility, support, and more. 深层和层次隐式模型 tensorflow As a practical example, we show how you can take any standard neural network and turn it into a deep implicit model: simply inject noise into the hidden layers. The hidden units in these layers are now interpreted as latent variables. Further, the induced latent variables are astonishingly flexible, going beyond Gaussians (or exponential families (Ranganath, Tang, Charlin, & Blei, 2015)) to arbitrary probability distributions. Deep generative modeling could not be any simpler! (是也乎: 简单的说 tensorflow 都支持的 ) Pythonistas 想要的定制杯子/配件 merchandise Cool Coffee Mugs for Python Developers. Check it out. (是也乎: ) Postmodern Error Handling 在 Python 3.6 python3, error handling How to catch some TYPES of errors before they happen. (是也乎: 后现代错误处理…눈_눈 ) Pandas 和 Jeff Reback – Episode 98 podcast 使用Google幻灯片API添加文字和图形 - G 套件开发秀 video Using Python API (是也乎: 油管上的…当然的. 由陈姓大叔讲解… ) Ned Batchelder: A tale of two exceptions, continued exception handling How to Rotate Images in Python Using a Horizon Detection Algorithm image processing (是也乎: 每个月5000张免费使用…无法用在视频上哪… ) Staffjoy 刚刚开源了 open source Staffjoy is shutting down, so we are open-sourcing our code. This version of our V1, intended for on-demand companies and call centers, has been heavily modified so that Staffjoy customers may continue using the software. Prophet: 规模化预报 machine learning Prophet is a procedure for forecasting time series data. It is based on an additive model where non-linear trends are fit with yearly and weekly seasonality, plus holidays. It works best with daily periodicity data with at least one year of historical data. Prophet is robust to missing data, shifts in the trend, and large outliers. (是也乎: 基于时间序列的预警 ) 一致性哈希环的简单解释 hash Consistent hash rings are beautiful structures, yet often poorly explained. Implementations tend to focus on clever language-specific tricks, and theoretical approaches insist on befuddling it with math and tangents irrelevant. (是也乎: 别的不说, 这图作的美… ) Async HTTP 在 PyPy3 上的基准测试 pypy PythonBuddy editor Python Editor With Live Syntax Checking and Execution (是也乎: 丑… ) 好物 ~ 包/模块/库/片段… ...

2017-03-03 · 2 min · 938 words · ZoomQuiet

蠎加载 113

原文: Import Python Weekly Newsletter - Issue No 113 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Guido van Rossum 访谈 podcast, BDFL Talkpython interview with Guido van Rossum aka BDFL. (是也乎: 有字幕的, 基本上就是回忆了 ABC 时代的嗯哼… ) 几个 Python 3 决择 / 进化 的关键视图 core-python The people who introduced me to Python chose it because of the elegance of the language, and it’s aesthetic qualities. Would they choose it again, I wonder? Would I?. (是也乎: 是什么以及为什么的 Py3 def hello_world(name): print ‘Hello’, name –> @coroutine async def hello_world(name: str) -> str: await print(‘Hello {}’.format(yield from name)) 一定是太多 C++ 程序媛进入了 python 内核开发团队! ) 在 Python 中设计模块 - ebook book This book is for people with some experience in an object oriented programming language. This book will help you get better at module/class level design. Hopefully, it will teach you to identify good design from bad. 为工程师和科学家的 Python 视频 video Python material in data science, analysis, and modeling, and optimization. Here is the youtube video channel of the site https://www.youtube.com/user/APMonitorCom (是也乎: 各种实战领域在职工程师/科学家们的 Pythonic 折腾 ) 使用 Uber 的 Pyflame 和日志解决问题 debugging This time, it was different though. My distributed web crawler seemed to be slowing down over time. Adding more nodes only had a temporary performance boost; the overall crawling speed gradually declined afterwards. So simply put, it couldn’t scale. But why?. In this post, you’ll find out what techniques and tools I used to diagnose scaling issues - and to an extent, more general performance issues - in my Python-based web crawler. (是也乎: 火焰图…. OpenResty 内置了专用工具, 现在咱大蠎也有了… ) Python Packaging 简要指南 packaging Code reuse is a very common need. It saves you time for writing the same code multiple times, enables leveraging other smart people’s work to make new things happen. Even just for one project, it helps organize code in a modular way so you can maintain each part separately. When it comes to python, it means format your project so it can be easily packaged. This is a simple instruction on how to go from nothing to a package that you can proudly put it in your portfolio to be used by other people. (是也乎: 一切最终归向 pypi ,这样有问题哪… ) 闭包约束 closures Emacs 作为 Python IDE emacs Note - The video is old, but worth watching for emacs users. 一种用于肺癌检测的python解决方案 deep learning 使用 Python 查找损坏的图像 image processing 5种 Python 库轻松进入机​​器学习 machine learning PyWren, Tfdeploy, Luigi, Kubelib, PyTorch. Note - We used luigi at my previous workplace and it’s a solid library to custom pipelines for batch processing. In our case it was used to enforce database migrations. 类型跟踪对Python很有用 debugging Type Tracing - as a program runs you trace it and record the types of variables coming in and out of functions, and being assigned to variables. (是也乎: 嗯哼?! 真正靠谱的还是人 ) 使用 Python 对扫描文档进行数据挖掘 data mining I’ve written a Python package called pdftabextract https://github.com/WZBSocialScienceCenter/pdftabextract that contains several helpful functions for that task and I’m explaining how to use them in that blog post. 好物 ~ 包/模块/库/片段… ...

2017-02-26 · 3 min · 1116 words · ZoomQuiet

蠎加载 112

原文: Import Python Weekly Newsletter - Issue No 112 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 以 Python 介绍计算机科学和编程.MIT 视频系列 video Introduction to Computer Science and Programming in Python is intended for students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems and to help students, regardless of their major, feel justifiably confident of their ability to write small programs that allow them to accomplish useful goals. The class uses the Python 3.5 programming language. (是也乎: 基于 py3.5 ) Python 代码仓库移入 GitHub core-python Python core developer Brett talks about the history the decision to move Python to GitHub (是也乎: 可怜的 Hg ) memoryview core python memoryview is a special type that can be used to work with data stored in other data-structures. (是也乎: 又一个全新数据类型 ) 又一个 Python-esque 类型系统: 鸭式静态类型 mypy I think the mypy static type checker is a fantastic initiative, and absolutely love it. My one complaint is that it relies a little too much on subclassing for determining compatibility. This post discusses nominal vs. structural subtyping, duck typing and how it relates to structural subtyping, subtyping in mypy, and using abstract base classes in lieu of a structural subtyping system. (是也乎: mypy 比 python 更快的 C++ 化ing… ) 无惧正则表达式 regex (是也乎: 的确, 如果每天都用 Vim 进行基于正则表达式的各种表达, 自然就嗯哼了 ) 在 Python 中使用 Apache Parquet 实现极高的并行 IO 性能 parquet, IO In this post, I show how Parquet can encode very large datasets in a small file footprint, and how we can achieve data throughput significantly exceeding disk IO bandwidth by exploiting parallelism (multithreading). (是也乎: 嗯哼,超越硬盘 IO 速度… 可是,现在不都在云端了? PK 的是内存速度了哪… ) 使用Scikit学习和Dask的两个简单的方法 sckit learn This post describes two simple ways to use Dask to parallelize Scikit-Learn operations either on a single computer or across a cluster. 对数学嗯哼的人来学习 AI — P4 — Tensors Illustrated (和喵!) tensorflow This the 4th part in the series. Kafka 入门 kafka Basically in this guide we will configure a basic Kafka instance in an Ubuntu environment & write a very very basic python producer & consumer. (是也乎: 卡夫卡 是西方现代派文学的宗师和探险者,表现主义大师,作品突出的是孤独感与恐惧感; 所以, 程序猿创建了 Kafka 工程来管理孤独的消息队列… ) 使用语音数据预测性别 machine learning, classification A beginner’s guide to implementing classification algorithms in Python Ergonomica shell Ergonomica is a Python-based console language, integrating modules such as os, shutil, and subprocess into a fast, easy-to use environment. It allows for functional programming tools and operations as well as data types that would otherwise require obscure grep or sed commands. (是也乎: 又一个使用纯Python 完成的 Shell 环境… ) 在 Google Compute Engine 中使用 Keras 进行深度学习 deep learning, keras Inception, a model developed by Google is a deep CNN. Against the ImageNet dataset (a common dataset for measuring image recognition performance) it performed top-5 error 3.47%. In this tutorial, you’ll use the pre-trained Inception model to provide predictions on images uploaded to a web server. Django Weekly Issue 26 django Django round up for this week. 好物 ~ 包/模块/库/片段… ...

2017-02-20 · 3 min · 1136 words · ZoomQuiet

蠎加载 111

原文: Import Python Weekly Newsletter - Issue No 111 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Sublime Text 3 和 Python - Kenneth Reitz sublime I decided to revisit my editor configuration the other night, and experimented with every possible editor I could think of / imagine. I heavily configured vim (neovim), PyCharm, Eclipse, Emacs (Spacemacs), VSCode, Atom, Textual, and more. I knew I was going to stay put with my choice of Sublime Text 3 (which I have been using for 5+ years), but it’s nice to have validation. (是也乎: 又一个心碎的故事,其实, 编辑器不好用, 只是因为我们成长的太快, 没有什么东西可以一直容纳我们所有的编程个性的… 所以,要不自己开发一个, UliEditor 就是这样来的, 要不个性化配置一个出来, 这就是 Vim/Emacs 成神成圣的原因 ) Think Python 第二版 - 免费下载 book This is the second edition of Think Python, which uses Python 3 is out. 如何使用 Python 和 Google Maps API 绘制自己的自行车/慢跑路线 Apart from being a data scientist, I also spend a lot of time on my bike. It is therefore no surprise that I am a huge fan of all kinds of wearable devices. Lots of the times though, I get quite frustrated with the data processing and data visualization software that major providers of wearable devices offer. That’s why I have been trying to take things to my own hands. Recently I have started to play around with plotting my bike route from Python using Google Maps API. My novice’s guide to all this follows in the post. 将 Vim 用成 Python IDE vim, editor I love vim and often use it to write Python code. Here are some useful plugins and tools for building a delightful vim python environment, escpecially for Vim8. (是也乎: TMUX 一直是 Vim 党的好朋友 ) Python 3.6 和性能 python3.6 Slides from Why Python 3.6 is faster than Python 3.5 talk. Also included a preview of new features of Python 3.6 (是也乎: 性能党的注意力果断从 py2 迁移到了 py3 ) 我们团队中的 3 种方式提高多系统构建速度. Sponsor How xMatters Uses Toolchains to Move Process Forward Python function 脑移植? core-python Did you know about __code__ ? (是也乎: def foo(): return “I’m foo!” def bar(): return “I’m bar!” foo.code = bar.code foo() 猜?! 最后输出什么!? ) K-Means和其他聚类算法:基于 Python 的快速入门 k-means, clustering 在 Python 中将 Postgres 数据作为 JSON 返回 postgres row_to_json and json_build_object usage along with code snippet for SQLAlchemy users. (是也乎: 可是,这本身不是 Pg 的一个特性嘛?! ) 在 Apache Spark 中用 UDF spark, user defined functions User-defined functions (UDFs) are a key feature of most SQL environments to extend the system’s built-in functionality. UDFs allow developers to enable new functions in higher level languages such as SQL by abstracting their lower level language implementations. Apache Spark is no exception, and offers a wide range of options for integrating UDFs with Spark SQL workflows. 在 Python 中进行 Encoding Categorical Values in Python datascience Many machine learning algorithms can support categorical values without further manipulation but there are many more algorithms that do not. Therefore, the analyst is faced with the challenge of figuring out how to turn these text attributes into numerical values for further processing. Python 的简单热门产品推荐引擎 machine learning, recommendation engine Pyweek Game Jam is 19th-26th February community, game development The Pyweek rules, in short, are Develop a game, In Python (mostly, at least!), As an individual or with a team, In exactly one week (or less!), From “scratch” - no personal codebases, only public, documented librarie, On a theme that is selected by vote, announced at the moment the contest starts. (是也乎: 用一周时间从0开始构建一个游戏的比赛 ) Seaborn 的 Python matplotlib, statistics Seaborn is a wrapper around Matplotlib that makes creating common statistical plots easy. The list of supported plots includes univariate and bivariate distribution plots, regression plots, and a number of methods for plotting categorical variables. The full list of plots Seaborn provides is in their API reference. 用 Amazon ML 对 Tweets 分类 aws, machine learning Python 新手经 humor 十小时 Python 解释器源代码通读 Python Video Series on CPython Internals. 使用 Python 在 Google 地球中打点 simplekml, kml First we need to import the library to create point in the Google Earth using simplekml module. 用 scikit-learn 的线性回归分析棋盘游戏数据 scikit-learn Doc2vec 简介 NLP, doc2vec Today I am going to demonstrate a simple implementation of nlp and doc2vec. The idea is to train doc2vec model from text document. I had about 20 text files to start with. Although the 20 document corpus seems small but the perk is it takes around 2 minutes to train the model. (是也乎: 比 perk 更加简洁以及高速的 NPL 模块 ) 好物 ~ 包/模块/库/片段… ...

2017-02-11 · 3 min · 1316 words · ZoomQuiet