蠎加载 143

原文: Import Python Weekly Newsletter - Issue No 143 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 如何在一小时内建立书籍推荐系统第1部分 - 基础知识 machine learning Building recommender systems today requires specialized expertise in analytics, machine learning and software engineering, and learning new skills and tools is difficult and time-consuming. In this post, we will start from scratch, covering some basic fundamental techniques and implementations in Python. In the future posts, we will cover more sophisticated methods such as content-based filtering and collaborative based filtering. (是也乎: pandas->nb->k-Nearest->… Machine-Learning-with-Python/Recommender Systems - The Fundamentals.ipynb at master · susanli2016/Machine-Learning-with-Python 是的 jupyter 上直接撸的 ) 我们如何在一小时内建立书籍推荐系统第2部分 - k最近的邻居和矩阵… machine learning In the last post, we saw how we could use simple correlational techniques to create a measure of similarity between the books’ users based on their rating records. In this post, we will explain how you can use those same sort of similarity metrics to recommend books to a book’s readers. Python Gem #19: 查找表 > if chain core-python What should be a really simple function has turned into a fifty-line gargantuan that’s too hard to read properly because of the sheer number of lines. The culprit; a seriously long if-elsif-else chain. But not to fear; there’s a better way! 最饭的可怕错误消息<- Python core-python TypeError: object() takes no parameters ...

2017-09-22 · 5 min · 2376 words · ZoomQuiet

蠎加载 142

原文: Import Python Weekly Newsletter - Issue No 142 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 3.7 有什么新的? new release This article explains the new features in Python 3.7, compared to 3.6. (是也乎: 因为老爹没有公司任务了, 所以,开始发力社区版本? ) 如何用 Python 生成 FiveThirtyEight 图表? graph, FiveThirtyEight If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself. In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization. (是也乎: FiveThirtyEight 原来是家公司,因为精美的可视化作品, 而变成了专门的 FTE 风格… ) 在 Unix 环境中配置 Python (用 pyenv 以及 direnv) environment, pyenv This post is about how to set up multiple Python versions and environments on a development machine (and why I don’t use conda). 在 Docker 中用 Jupyter Notebook 跑 PySpark – Suci Lin – Medium docker, spark, jypyter It is much much easier to run PySpark with docker now, especially using an image from the repository of Jupyter. When you just want to try or learn Python. it is very convenient to use Jupyter Notebook for an interactive developing environment. The same reason makes me want to run Spark through PySpark in Jupyter Notenook. (是也乎: 嚓, 这热点组合的… ) Surgical 时间追踪在 Python performance How to profile your python code to improve performance? 用卷积去噪在基于内容的图像检索中使自动编码器 machine learning, image processing Content based image retrieval (CBIR) systems enable to find similar images to a query image among an image dataset. The most famous CBIR system is the search per image feature of Google search. This article is a keras tutorial that demonstrates how to create a CBIR system on MNIST dataset. Our CBIR system will be based on a convolutional denoising autoencoder. It is a class of unsupervised deep learning algorithms. (是也乎: 基于内容的图像搜索… ) itertools.count code snippets You need to iterate over an infinite series of numbers, breaking when a condition is met. 如何用 Python 监听 S&P 500 股票 scraping, codesnippets I thought it would be nice to show how one can leverage Python’s Pandas library to get stock ticker symbols from Wikipedia. Equality 和 Identity tweet (是也乎: Equality vs Identity: »> a = [“x”, “y”] »> b = a »> c = [“x”, “y”] »> a == b == c True »> a is b True »> a is c False 所以, 这个 推 关注时间长了就怀疑人生了… 不过, logo 很萌… ) ...

2017-09-16 · 4 min · 1972 words · ZoomQuiet

蠎加载 141

原文: Import Python Weekly Newsletter - Issue No 141 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… GoCD - 开源续发服务器 GoCD, advert GoCD is a continuous delivery tool specialising in advanced workflow modeling and dependency management. It lets you track a change from commit to deploy at a glance, providing superior visibility into your workflow. It’s open source, free to use and download. (是也乎: 对 CI 的进一步提升, 持续发送? ) Python 令人难以置信的成长 core-python In this post, we’ll explore the extraordinary growth of the Python programming language in the last five years, as seen by Stack Overflow traffic within high-income countries. The term “fastest-growing” can be hard to define precisely, but we make the case that Python has a solid claim to being the fastest-growing major programming language. (是也乎: 简单的说, 只是撞到了数据科学的大热点… ) DjangoCon US 视频发布了 videos Django 完整初学者指南 - 第一部分 django I’m starting today a new tutorial series about the Django fundamentals. It’s a complete beginner’s guide to start learning Django. The material is divided into seven parts. We’re going to explore all the basic concepts in great detail, from installation, preparation of the development environment, models, views, templates, URLs to more advanced topics such as migrations, testing, and deployment. (是也乎: 叕一个 Dj 教程… ) hatch: 现代化的 项目,包以及虚拟环境管理器 package manager Hatch is a productivity tool designed to make your workflow easier and more efficient, while also reducing the number of other tools you need to know. It aims to make the 90% use cases as pleasant as possible. (是也乎: /^/^ || O| / /~ _/ _|****/ _____ `\ \ | | / / / / / / \ / / \ / / —- \ / / -~ ~- | | ( ( -~ – ~- / | \ ~--~ -~ ~- ~--~ / -_ _- -_ _- ~–_-~ ~-__-~ 简单的说: 简化一堆 CLI 工具的 CLI 工具. ) selectors select Provide platform-independent abstractions for I/O multiplexing based on the select module. (是也乎: PyMOTW 已经坚持了有快10年了…可见 Python 内建模块的持续优化中故事太多了… ) 用 PyCharm 嗯哼 Reddit reddit Run reddit on your local machine with PyCharm to help you through the way. 从 Scratch 嗯哼的深度学习 II: Perceptrons – deep ideas deep learning This is part 2 of a series of tutorials, in which we develop the mathematical and algorithmic underpinnings of deep neural networks from scratch and implement our own neural network library in Python, mimicing the TensorFlow API. 性能分析: Goroutine 和 Python 的 Coroutine python, go I made 1000 HTTP requests using Goroutines and Python’s Coroutines. Do check out Go Programming Language Newsletter http://importgolang.com to keep track of Go ecosystem. 高级 Pillow 第二部分 image processing Wow Pillow is powerful. Python 中的 Threads vs Processes Threads, processes Beginner’s guide to parallel programming. 都柏林自行车站的应用模式 data science 如何建立特朗普的情感跟踪 machine learning, sentiment analysis Analyzing over a thousand tweets a minute PyTorch vs TensorFlow?—?挖掘差异 machine learning In this post I want to explore some of the key similarities and differences between two popular deep learning frameworks: PyTorch and TensorFlow. Why those two and not the others? There are many deep learning frameworks and many of them are viable tools, I chose those two just because I was interested in comparing them specifically. (是也乎: 图样图森破, 其实最大的差异就是爹不同哪… ) Smarkets 的数据驱动营销 ETL I was introduce to Luigi by my friend Shanmuganandh. It has since become an important tool in my Python toolkit. Do check it out. 重新设计 Python 的命名元组 tuples Deficiencies in the startup time for Python, along with the collections.namedtuple() data structure being identified as part of the problem, led Guido van Rossum to decree that named tuples should be optimized. That immediately set off a mini-storm of thoughts about the data structure and how it might be redesigned in the original python-dev thread, but Van Rossum directed participants over to python-ideas, where a number of alternatives were discussed. They ranged from straightforward tweaks to address the most pressing performance problems to elevating named tuples to be a new top-level data structure—joining regular tuples, lists, sets, dictionaries, and so on. (是也乎: 论一个 EPE 的养成术 ) 不过载库的 Python 学习姿势 education (是也乎: 简单的说, 那是不可能的… ) How Python does Unicode? unicode (是也乎: 说多了都是泪…. ) btcpy 发布: 全功能的比特币库 bitcoin With the aim of making Bitcoin products development easier and more effective, at Chainside we decided to develop btcpy, a new Python 3 SegWit-compliant library, which is focused on providing a simple interface to parse and create complex Bitcoin scripts. Serverless Thrift APIs in Python on AWS Lambda aws lambda This blog post shows a basic example of a Serverless Thrift API with Python for AWS Lambda and AWS API Gateway. python 奇招集锦 core-python Python, being awesome by design high-level and interpreter-based programming language, provides us with many features for the programmer’s comfort. But sometimes, the outcomes of a Python snippet may not seem obvious to a regular user at first sight. Here is a fun project attempting to collect such classic and tricky examples of unexpected behaviors in Python and discuss what exactly is happening under the hood! (是也乎: 简单的说, 嫑用… <- WTFPL 2.0 这个许可证很屌… ) Monkey-patching is Bad monkey patching Monkey-patching software is generally frowned upon, but there is a time and a place for everything, even monkey-patching. (是也乎: 🐒补刚刚在嗯哼说赞, 马上就反转了… ) Serving 1x1 pixels from AWS Lambda endpoints aws lambda A no-headache guide to serve 1x1 pixels in a serverless, Pythonic world. “The Zen of Python” 简析 zen of python The Zen of Python?—?is a list of 19 general truths for Python design principles. Apparently there is a 20th, but I’m focusing on understanding the written list before speculating on what the Easter Egg could be. Written below is a brief analysis of each rule, taken in large part from an article I read on Quora.com. Below the list is the link for that. (是也乎: 值得长久嗯哼的文本, 只是随着技术的进步落实到代码上也各有不同… ) Python 玑珠 #9: itertools.chain itertools This is a daily series called Python Gems. Each short posts covers a detail, feature or application of the python language that you can use to increase your codes readability while decreasing its length. (是也乎: 一个系列, 收集各种简洁代码的思路 ) Python 魔法方法和 getattr core-python A primer on Magic Methods 好物 ~ 包/模块/库/片段… ...

2017-09-08 · 5 min · 2260 words · ZoomQuiet

蠎加载 140

原文: Import Python Weekly Newsletter - Issue No 140 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… EuroSciPy 视频 conference, videos Being uploaded at the time of sending the newsletter. (是也乎: Python 大会的趋势就是专业化, 应该马上有 区块链大会了… ) 节约 Python 的启动时间 core-python The startup time for the Python interpreter has been discussed by the core developers and others numerous times over the years; optimization efforts are made periodically as well. Startup time can dominate the execution time of command-line programs written in Python, especially if they import a lot of other modules. Python startup time is worse than some other scripting languages and more recent versions of the language are taking more than twice as long to start up when compared to earlier versions (e.g. 3.7 versus 2.7). (是也乎: 这才是核心技术的讨论区哪… ) Python 数据科学手册 - 开放嗯哼 data science This website contains the full text of the Python Data Science Handbook by Jake VanderPlas; the content is available on GitHub in the form of Jupyter notebooks. (是也乎: 叕一个 收集各种数据科学相关案例的 ipynb 图书了… ) cachelper caching Useful cache helpers in one package. (是也乎: 人性化缓存到各种后端中… ) 预测 Ames, Iowa 的房价 data science Regression, Regularization, Residuals and Feature Selection Asyncio Coroutine 模式: 错误和取消 asyncio In the first part of this series we concluded that asyncio is awesome, coroutines are awesome and our code is awesome. But sometimes the outside world is not as awesome and we have to deal with it. Now, for this second part of the series, I’ll run over the options asyncio gives us to handle errors when using these patterns as well as cancelling tasks so as to make our asynchronous systems robust and performant. TensorFlow 中的高级 API tensorflow TensorFlow is providing some higher-level constructs itself, and some new ones were introduced in the latest 1.3 version. In this blog, we’ll look at an example using some of these new higher-level constructs, including Estimator, Experiment, and Dataset. (是也乎: 简单的说, 还有更多根本没有释放出来… ) 计算机视觉中的 Robust Lane Finding 技术 machine learning, image processing Lane identification system for camera based systems. Python Gems #5: 无声功能链接 core-python Meme 搜索使用 pretrained word2vec machine learning We show how to build a very basic, yet not bad, meme retrieval system using pretrained word embeddings. 用Python监控道路交通 machine learning, image processing 时间序列监听 库s time series This curated list contains python packages for time series analysis. 好物 ~ 包/模块/库/片段… ...

2017-09-01 · 3 min · 1260 words · ZoomQuiet