蠎加载 157

原文: Import Python Weekly Newsletter - Issue No 157 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 给小白的 Pandas: 如何处理真实的数据 pandas Handling real life datasets can be painful when you are used to cleaned and ‘ready-to-use’ datasets that are used in books, tutorials and beginner challenges in Data Science. This tutorial aims to provide some useful tips and codes to get started with the Pandas library and data provided by your company or client. 用TensorFlow识别手写数字 deep learning, tensorflow DeepLearning is a subfield of machine learning that is a set of algorithms and functions inspired by the structure and fucntioning of the brain. TensorFlow is a machine learning framework that Google created and is used to design, build and train deep learning models. This tutorial is an attempt on the MNIST dataset from this Kaggle competition while also explaining the basics of writing TensorFlow code. (是也乎: 这已经是标准的入门嗯哼了, 关键是启动训练集容易建立, 并早已有… ) Python 的SQLite教程 sqlite3 This tutorial will cover using SQLite in combination with Python’s sqlite3 interface. (是也乎: 叕一个 SQLite 教程, 简单的说, 得先会 SQL ) 在 Go 中扩展 Python 3 golang Extending Python has been a core feature of the platform for decades, the Python runtime provides a “C API”, which is a set of headers and core types for writing extensions in C and compiling them into Python modules. But, do you really have to write extensions to Python in C? Why can’t we use something a tad more modern, like Go. (是也乎: golang 的优良设计之一就是方便的支持 C, 所以, 扩展到 Python 也是相似的工具链 ) $1200 的深度学习钻机 deep learning, offtopic Inspired by several other system builds ($1000, $1700, and forum posts), I decided to have a go and build one. I was a Sr Director of Data Science for a large travel company at the time and was a bit envious of the work being done by the individual scientists. I was also contemplating a change in employment (with some downtime)?—?I wanted to ensure I had access to resources to continue my deep learning leveling-up. Finally, I wanted to make sure I could demonstrate to my kids the Internet’s most important task: distinguishing between “cat” and “not cat”. Python 作为教学语言可以退休了 teaching For the last ten years, my standard advice to someone looking for a programming language to teach beginners has been start with Python. And now I’m changing that recommendation. (是也乎: 这位老师尝试过 Erlang 作为开蒙的语言? 现在果断推荐上 Javascript… ) 和我谈谈Python: #145 2017 Python年度回顾 podcast 用 Python 构建一个 Redis-样 的服务器 Redis-like The other day the idea occurred to me that it would be neat to write a simple Redis-like database server. While I’ve had plenty of experience with WSGI applications, a database server presented a novel challenge and proved to be a nice practical way of learning how to work with sockets in Python. In this post I’ll share what I learned along the way. When and how to use Django TemplateView django, template Django provides several class based generic views to accomplish common tasks. Simplest among them is TemplateView. TemplateView should be used when you want to present some information in a html page. TemplateView shouldn’t be used when your page has forms and does creation or update of objects. 好物 ~ 包/模块/库/片段… ...

2018-01-07 · 4 min · 1620 words · ZoomQuiet

蠎加载 156

原文: Import Python Weekly Newsletter - Issue No 156 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 贵宾犬/哈巴狗还是维也纳狗? 用 Python 和 Flask 部署一个 Dog Identification TensorFlow 模型 machine learning In this post, we’ll create a demo to see how simple it is to develop a machine learning-based service using Python’s Flask library. 在Python> = 3.6中唯一化列表的最快方法 core-python This is an update to a old blog post from 2006 called Fastest way to uniquify a list in Python. But this, time for Python 3.6. Why, because Python 3.6 preserves the order when inserting keys to a dictionary. How, because the way dicts are implemented in 3.6, the way it does that is different and as an implementation detail the order gets preserved. Then, in Python 3.7, which isn’t released at the time of writing, that order preserving is guaranteed. 与 Paige Bailey 来机器学习101- Podcast podcast This week on the show Scott talks to Data Scientist and AI expert Paige Bailey. What’s the difference between machine learning and deep learning? Do I need to learn R and Python to use machine learning models? Do models need to deploy regularly or can I use them forever? All these questions and more, this week! 用Python构建穷人的深度学习相机 - Make Art with Python deep learning Imagine being able to use a camera that’s able to tell when you’re playing a guitar, or creating a new dance, or just learning new skateboard tricks. It could use the raw image data to tell if you landed a trick or not. Or if you’re doing a new dance routine, what the series of poses are, and how they fit to the music. Python Community is at its Peak at North Bay Python community Generators «- Functions ( R 程序猿视角) R I got in a small argument at a meetup about R. Something about python being a BetterLanguage[tm] than R. One of the arguments was that python is better because the language has support for generators. This was an interesting moment because I definately agree that the way that generators work in python is great. I would even argue that there are parts in python that work better for many tasks than R might (and vise versa). But I wouldn’t argue that R does not a very similar feature to generators in python, but they do require you to think differently. 您 Python Web 应用程序的性能如何? performance This post tries to explain web application performance. Performance means the number of requests per second that can be served by a deployed application. Msgpack vs JSON(使用gzip) msgpack I was curious, how much more efficient is Msgpack at packing a bunch of data into a file I can emit from a web service. 信用卡欺诈检测中的类不平衡 - 第1部分:理解对模型准确性的影响 machine learning Whenever we do classification in ML, we often assume that target label is evenly distributed in our dataset. This helps the training algorithm to learn the features as we have enough examples for all the different cases. For example, in learning a spam filter, we should have good amount of data which corresponds to emails which are spam and non spam. Julia vs. Python: Julia语言在数据科学 | InfoWorld datascience, julia Python has turned into a data science and machine learning mainstay, while Julia was built from the ground up to do the job. (是也乎: 所以, 在 Jupyter 的大光中其它数据分析语言, 也有了一丝活路? ) Python Release Python 3.6.4 new release Python 3.6.4 is the fourth maintenance release of Python 3.6. 2017年十大Python库 - Tryolabs Blog packages (是也乎: 分别是: Pipenv ; PyTorch ; Caffe2 ~ 叕一个 Fb 发现的 DSL ; Pendulum ; Dash ; PyFlux ; Fire ~ 叕一个 CLI 工具构造框架 ; imbalanced-learn ; FlashText ~ 叕一个正则表达式增强工具 ; Luminoth 作者又额外推荐了: PyVips ~ 全新的图片处理模块 ; Requestium ; skorch ~ PyTorch+scikit-learn ) ...

2017-12-24 · 4 min · 1624 words · ZoomQuiet

蠎加载 155

原文: Import Python Weekly Newsletter - Issue No 155 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 开源 MonkeyType - 来自 Instagram instagram, opensource Today we are excited to announce we’re open-sourcing MonkeyType, our tool for automatically adding type annotations to your Python 3 code via runtime tracing of types seen. (是也乎: 简单的说, 凡是深入大规模部署 Python 几年后, 无人忍受的了官方版本, 都在根据自己的业务来嗯哼出新的分支… ) Dict to now retain insertion order core-python Tweet 介绍为 Python 的 PrettyPrinter prettify PrettyPrinter is a powerful, syntax-highlighting, and declarative pretty printer for Python 3.6+. It uses a modified Wadler-Leijen layout algorithm, similar to those used in Haskell pretty printer libraries prettyprinter and ansi-wl-pprint, JavaScript’s Prettier, Ruby’s prettyprinter.rb and IPython’s IPython.lib.pretty. It combines the best parts of each and builds more on top to produce the most powerful pretty printer in Python to date. (是也乎: 叕一个对象输出美化模块, 只是, 这种只能满足程序猿私人观赏需求的,能存活多久? ) Python – 正则表达式实用指南 regular expression Regular Expressions are commonly used in Linux command line tools like sed, awk, grep etc. Most programming languages support them in either built – in or through an external library. The main problem of using them is that they difficult to understand, but they are well worth the effort to learn. Using a regular expression can save you a lot of time. (是也乎: 啊…伟大精致易沉迷的 正则表达式 哪… ) Kenneth Reitz – Episode 139 – Podcast.init kenneth Kenneth Reitz has contributed many things to the Python community, including projects such as Requests, Pipenv, and Maya. He also started the community written Hitchhiker’s Guide to Python, and serves on the board of the Python Software Foundation. This week he talks about his career in the Python community and digs into some of his current work. (是也乎: kenneth 老爹继承者之一… ) enlighten command line Enlighten Progress Bar is a console progress bar module for Python. (Yes, another one.) The main advantage of Enlighten is it allows writing to stdout and stderr without any redirection. (是也乎: 叕一个 CLI 进度条模块 ) Twitter 上的 Python 技巧日报 tweet Compare two floats with math.isclose() to see if they are nearly equal #python https://t.co/y9QiKtpbNP" (是也乎: 早已订阅, 然后,无法分享… ) Microsoft 考虑将 Python 作为正式脚本语言添加到 Excel 中 excel Microsoft is considering adding Python as one of the official Excel scripting languages, according to a topic on Excel’s feedback hub opened last month. (是也乎: 迟了20年了…. ) 专家 - Cartoon humor (是也乎: 又一个伪装成程序猿的职业漫画家 ) Django Girls 的三潘市嗯哼 django-girls If you’ve never coded before and want to learn how to make websites, we have good news for you: we are holding a one-day workshop for beginners! It will take place on February 25, 2018 at Collective Health in San Francisco. (是也乎: 去年获得老爹认可的传教活动… ) HereIsWally tensorflow HereIsWally is a Tensorflow project that includes a model for solving Where’s Wally puzzles. It uses Faster RCNN Inception v2 model initially trained on COCO dataset and retrained for finding Wally using transfer learning with Tensorflow Object Detection API. (是也乎: COCO 数据集? 那个电影的? ) 好物 ~ 包/模块/库/片段… ...

2017-12-17 · 3 min · 1453 words · ZoomQuiet

蠎加载 154

原文: Import Python Weekly Newsletter - Issue No 154 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 专访:站在数据科学最重要工具背后的人 pandas Interview with none other then Wes McKinney of Pandas. (是也乎: Pandas 之父 Wes McKinney …. ) 优化ed Python docker Turns out there are some optimizations you can do when compiling Python 3.5 and 3.6 that give you some significant speed improvements without any real downside. We’ve paired with with Google’s base Debian image that rips out systemd and all it’s dependencies which yields a MUCH smaller image. (是也乎: 也就是说专用版本的 Python 发行有了标准的渠道 ) 概率论基础 - Peter Norvig probabilty This notebook covers the basics of probability theory, with Python 3 implementations. (You should have some background in probability and Python.) (是也乎: 叕一个 py3 完成的基础学科教程 ) 比较5个数据可视化 Python 工具 visualization It could be challenging to pick the right data visualization tool in Python. There are so many options available. Summarizing most common tools, then testing and comparing different techniques would help to pick the best fit and method for the needed visualization. (是也乎: 5大常见数据可视化框架的比较: 果断 Bokeh 最均衡 ) misocoin bitcoin Barebones bitcoin-like protocol implemented in Python 3.6. (是也乎: 叕一个 Btc-样 协议框架 ) Python 3 整备 pypi This site shows Python 3 support for 360 most downloaded packages on PyPI. (是也乎: 动态统计 py 3 环境下载使用频率最高的 Top 360 包 ) 推荐引擎 - Yelp machine learning Using user review data from Yelp, our aim was to develop a recommendation system to provide a new restaurant suggestion that a user might like. The project was motivated by the fact that recommendation problems are ubiquitious, including the infamous Netflix challenge and “similar items you might like” suggestions from Amazon. Given the diverse application of this problem, we wanted to learn how to develop and implement such system using machine learning. (是也乎: 实战的推荐系统架构经验 ) html5lib-python 1.0 released open source, new release Yesterday, Geoffrey released html5lib 1.0 [1]! The changes aren’t wildly interesting.The more interesting part for me is how the release happened. I’m going to spend the rest of this post talking about that. Those looking to manage / understand the workings behind becoming a maintainer of a open source project should read this. (是也乎: 叕一个尝试嗯哼 H5 的库… ) 为 Selenium Chrome 和 Python 设置 Digital Ocean 服务器 testing (是也乎: FF 发疯关闭 扩展渠道后, 基于 Chrome 扩展的工具就多了起来… ) 用 Wallaroo 在 Python 中嗯哼 Multi-Stream 处理 distributed computing Wallaroo is a high-performance, open-source framework for building distributed stateful applications. (是也乎: 叕一个分布式计算框架 ) Kaggle 内核简介 machine learning On this episode of AI Adventures, find out what Kaggle Kernels are and how to get started using them. Though there’s no popcorn in this episode, but I can assure that Kaggle Kernels are popping! (是也乎: 叕一个 ML 入门教材 ) 用 Python 优化你的 Cryptocurrency 组合 cryptocurrency Bitcoin is now mainstream. While the debate on whether it’s a speculative bubble or the greatest thing since the internet continues, one thing that is irrefutable is that it has attracted a significant amount of investor interest to cryptocurrency and digital assets. (是也乎: 数字货币的入门最佳姿势, 总是从 py 开始… ) 在 Python 中更专业的嗯哼日期时间对象 datetime (是也乎: 多谢 @Geek Cheng 的嗯哼, 一时不查露过了机器翻译的… ) 使用 Apache Spark DataFrames API 进行结构化流式传输 spark 使用 Facebook 的 Prophet 库预测比特币价格 prediction This is just a quick post to show how you can use Facebook’s Prophet forecasting library in python to forecast bitcoin hourly bitcoin prices. 介绍 pymatch 包 pymatch The pymatch Python package implements Propensity Score Matching (PSM) techniques intended for use with observational study designs. It was inspired by and adapted from Jasjeet Singh Sekhon’s Matching package in R. I wrote an adaptation in Python that is better suited for my work at Mozilla (是也乎: 倾向分数匹配(PSM)技术, Mozilla 适用版本… ) 好物 ~ 包/模块/库/片段… ...

2017-12-10 · 3 min · 1386 words · ZoomQuiet