蠎加载 158

原文: Import Python Weekly Newsletter - Issue No 158 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 掌握 PyCharm pycharm Do you use PyCharm as your Python IDE?. Then this course might be of interest to you. Taught by Michael of TalkPython podcast fame. (是也乎: 总是说一个工具复杂到要出书来学习使用时, 就得谨慎了… ) 如何使用VS Code和Jupyter Notebook改善您的工作流程 jupyter, visualstudio I love VS Code and I love Jupyter Notebooks. Both excel at their own world. But to improve my workflow I had to create a bridge between their worlds. (是也乎: 在 IPy:NB 中可以完成的任务, 导入 VSCode 后, 也就能看看,并不能交互那有什么用? ) Luciano Ramalho 曰 Python 功能和库 - O’Reilly Media podcast The O’Reilly Programming Podcast: A look at some of Python’s valuable, but often overlooked, features. (是也乎: O’Reilly 也在用 Py ) 开始使用 Anaconda Python, 数据科学的发行版 anaconda It provides a management GUI, a slew of scientifically oriented work environments, and tools to simplify the process of using Python for data crunching (是也乎: 内什么, anaconda 的问题不在安装, 而在生产.. ) 介绍 Python Ensembles machine learning Ensembles have rapidly become one of the hottest and most popular methods in applied machine learning. Virtually every winning Kaggle solution features them, and many data science pipelines have ensembles in them. Put simply, ensembles combine predictions from different models to generate a final prediction, and the more models we include the better it performs. Better still, because ensembles combine baseline predictions, they perform at least as well as the best baseline model. Ensembles give us a performance boost almost for free! (是也乎: Ensembles ~ 合奏,叕一个 ML 框架 简单的说将常用的一堆算法用统一的界面管理了起来. ) 新 Python 库用于分析 skeleton 图像协助分析红血球膜 skeleton 特征来确认疟疾寄生虫 scipy We present Skan (Skeleton analysis), a Python library for the analysis of the skeleton structures of objects. It was inspired by the “analyse skeletons” plugin for the Fiji image analysis software, but its extensive Application Programming Interface (API) allows users to examine and manipulate any intermediate data structures produced during the analysis. Further, its use of common Python data structures such as SciPy sparse matrices and pandas data frames opens the results to analysis within the extensive ecosystem of scientific libraries available in Python. (是也乎: Skan的推荐.. ) K-Means 聚类与 Scikit-learn machine learning, scikit K-means clustering is a simple yet very effective unsupervised machine learning algorithm for data clustering. It clusters data based on the Euclidean distance between data points. K-means clustering algorithm has many uses for grouping text documents, images, videos, and much more. (是也乎: 叕一则用 scikit 折腾 K-Means 的嗯哼 ) Python 发布 Python 3.7.0a4 new release This is an early developer preview of Python 3.7 (是也乎: Py3 在加速, 想来 2020 年也不远了…不过, Py2 的寿命远远不是官方说了算的.. ) 如何用 Python 绘制 Renko 图表? renko Renko charts are time independent and are efficient to trade as they eliminate noise. In this article we see how to plot renko charts of any instrument with OHLC data using Python. (是也乎: pandas+matplotlib 就嗯哼了. ) 用 Python 基于 Google Cloud Speech API 将语音转录成文本 audio This tutorial will walk through using Google Cloud Speech API to transcribe a large audio file. (是也乎: 叕一个 Google 语音接口的包装库, 只是少年, 在中国无法直接用哪… 当然, 多年前开始, Youtube 就已经大规模使用此服务来自动生成各种演讲字幕了, 而且速度越来越快,当前已经可以作到准实时了… 对比国内的讯飞, 投入的研发时间还要长, 可惜… ) tirthajyoti/PythonMachineLearning data science, machine learning Essential codes for jump-starting machine learning/data science with Python. (是也乎: 叕一则 DC~数据科学入门教程 ) Python 中的时间序列分析 numpy, time series Additive models for time series modeling 我如何用20行以内 Python 代码生成正能量语句? markov chain When it comes to natural language generation, people normally think of advanced AI systems using advanced mathematics; however, that is not always true. In this post, I will be using the idea of Markov chains and a small dataset of quotes to generate new quotes. (是也乎: 叕一则 20行 AI 案例…哈哈.. ) 使用 Python 生成器来爬星球大战 API generators In this lesson, you will be introduced to Python generators. You will see how a generator can replace a common function and learn the benefits of doing so. You will learn what role the yield keyword provides in functions and how it differs from a return. Building on that knowledge, you will learn how to build a generator to recursively crawl an API (swapi.co) and return Star Wars characters from “The Force Awakens”. Python 中关键字和常量之间的差异 core-python 好物 ~ 包/模块/库/片段… ...

2018-01-14 · 4 min · 1725 words · ZoomQuiet

蠎加载 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