从 R 迁移到 Python 过程中你需要知道的几个软件库
为什么要用 python 呢? 我喜欢用 Python 来处理机器学习问题的一个重要原因是 Python 吸取了 R 社区的优点,同时还将其进行了优化打包。我一直认为编程语言的能力取决于它的软件库,因此本文将着重介绍我经常使用的一些关于机器学习算法的 R 包和 Python 中的替代包。 glm, knn, randomForest, e1071 -> scikit-learn R...
View ArticleHacking FFmpeg With Python Part One
FFmpegis a great multimedia framework that helps you deal with your audio and video files. What do I mean by this? Well, you can easily convert from one format to another, extract audio from a video,...
View Articleoslo_config配置解析模块
oslo_config 模块是openstack中使用的配置文件和命令行参数解析模块,可以很方便的解析命令行(CLI)或者配置文件。 我们经常能看到如下的配置文件格式: # this is demo app.conf # this is comments [network] enable = True ip = '127.0.0.1' port = 8080 host = tyr.gift...
View ArticleIntro to Python CSV Processing for Actual Beginners
I've written quite a bit about CSV processing . It crops up in my books. A lot. In all cases, though, I make the implicit assumption that my readers already know a lot of python. This is a disservice...
View Article教程 | 理解和实现自然语言处理终极指南(附Python代码)
根据行情,只有21%的数据目前是结构化的。谈话、发推文、在 WhatsApp上发信息以及其他各种各样的活动,都在持续不断的产生数据。而大多数这种数据都是以非结构化的文本形式存在的。 最著名的例子有:社交媒体上的推文/帖子、用户到用户的聊天记录、新闻、博客、文章、产品或服务测评和医疗行业的病人记录。最近的例子有聊天机器人和其他声音驱动的机器人。...
View ArticlePython基础面试题快速自测, 你真的懂Python基础么?
python基础面试题快速自测, 你真的懂Python基础么? 一点号复旦大数据6小时前 复旦大数据 php?url=0FfK9buQFG" alt="Python基础面试题快速自测, 你真的懂Python基础么?" />Python基础面试题快速自测, 你真的懂Python基础么?先来几道题试试,比如: 1. What will be the output of the code...
View ArticleMy contributions to CPython during 2016 Q4
My contributions to Cpython during 2016 Q4 (october, november, december): hg log -r 'date("2016-10-01"):date("2016-12-31")' --no-merges -u Stinner Statistics: 105 non-merge commits + 31 merge commits...
View Article从0到1,Python异步编程的演进之路
本文将通过一些例子来讲述作为python开发者有哪些常用的方式来实现异步编程,以及分享个人对异步编程的理解,如有错误,欢迎指正。 先从一个例子说起。...
View Article使用Python快速下载大量妹子图
首先有一个网站 http://www.dbmeinv.com/ ,这个网站是别人从豆瓣社区上抓取的妹子图。既然是初次学习那么肯定要选择这种简单的网页开始喽。 该文章适用于python3,如用于Python2需要做少量更改 0X00 爬虫如何工作 爬虫说白了就是模仿人类的行为从网络上批量获取我们所需要的数据的一种工具,在这里我们所需要的数据就是妹子图了。 网络蜘蛛(Web...
View ArticleFlask-SocketIO 文档译文
\ k 译者:詹聪聪 投稿 邮箱: zhancongc@gmail.com ― ― flask-SocketIO 中文翻译 11.访问flask上下文全局变量 13.使用Flask-SocketIO的Flask-Login模块 16.使用nginx作为反向代理服务器 19.从Flask-SocketIO 0.x 升级到 1.x 和 2.x 版本 序言:...
View Articlepython脚本pdb调试工具使用
pdb是linux的的python调试工具,它功能比较齐全,使用起来也很方便, 按一边运维工程师的发展来说,一般最早接触的是shell编程, 所以大多是在shell的基础上开始学习Python的,如果是刚 从shell脚本转到写python脚本的小伙伴可能会有点不太适应,比如说调试,大家都知道写脚本是有一个调试过程的除非你的脚本里只有一行,...
View ArticleThe start of the FASTCALL project
False start In April 2016, I experimented a python change to avoid temporary tuple to call functions. Builtin functions were between 20 and 50% faster! Sadly, some benchmarks were randomy slower. It...
View ArticleCompare two images: the histogram method.
This is a very simple example about how to compare the histograms of both images and print the inconsistencies are bound to arise. The example come with alternative solution: Histogram method. The...
View ArticleGoogle Spreadsheets and Python
This post is inspired by Patrick McKenzie’s reminder that sometimes you don’t need a database: So if you’re building out a quick CRUD app for e.g. internal use, Google Docs as a backend (consumed via...
View ArticlePython’s New secrets Module
python 3.6 added a new module called secrets that is designed “to provide an obvious way to reliably generate cryptographically strong pseudo-random values suitable for managing secrets, such as...
View ArticlePython做文本挖掘:基础知识
作者:陆勤 **概述:**python是一门易学好用,强融合性的数据科学编程语言。数据科学的各个环节的问题,Python都有相应的方法解决。Python做文本挖掘是一个系统化的过程,包括文本数据获取、文本数据预处理、文本数据存储和管理、文本数据分词和向量化、文本数据建模、模型评价和应用,这个过程是持续迭代和反复优化的。 提纲 1 文本挖掘是什么? 2 为什么选择用Python做文本挖掘? 3...
View ArticleSetting up tests in GitLab CI for Django project with Docker Engine
Hello! In this article I will describe how we set up GitLab CI to run tests for Django project. But first a couple of words about what tools we were using. What we had before GitLab Atlassian For a few...
View ArticleContinuum Analytics to Speak at Galvanize New York
Chief Data Scientist and Co-founder Travis Oliphant to Discuss the Open Data Science InnovationsThat Will Change Our World NEW YORK, NY―February 17, 2017―Continuum Analytics, the creator and driving...
View Articlepython基础题型一
一、执行python脚本的两种方式 #python name.py Python解析器 #chmod +x name.py 二、简述位、字节的关系 1Byte=8bit 三、简述ascii、unicode、utf-8、gbk的关系 ascii是美国最初的英文编码方式...
View Article哪一种编程语言适合人工智能?――Python在人工智能中的作用
谷歌的AI击败了一位围棋大师,是一种衡量人工智能突然的快速发展的方式,也揭示了这些技术如何发展而来和将来可以如何发展。 人工智能是一种未来性的技术,目前正在致力于研究自己的一套工具。一系列的进展在过去的几年中发生了:无事故驾驶超过300000英里并在三个州合法行驶迎来了自动驾驶的一个里程碑;IBM...
View Article