Columbia Creates Data Set Cleaner
Columbia Creates Data Set Cleaner Written by Kay Ewbank Tuesday, 06 September 2016 A tool that cleans big data sets of dirty data has been developed at ColumbIa University and University of California...
View ArticleSetting Up PyCharm With a Lego EV3
Notes based on Setting Up a python Development Environment with PyCharm for setting up PyCharm editor to work with EV3. Requires passwordless ssh into the brick and the brick on 192.168.1.106 . We’re...
View Article从R转向Python:你需要知道的那些库
Moving from R to python: The Libraries You Need to Know 导读:R语言和Python语言有很多共性,也是数据科学家门喜欢的两门语言。R语言能够做的事情,有很多丰富的包,在Python语言里也有很多经典的库可以做好相应的事情。这篇文章从同一问题出发,把R语言的包和Python的库对应起来,值得一读,更是值得实践。实践出真知! Why the...
View Article爆款游戏《贪吃蛇大作战》的 Python 实现
感觉游戏审核新政实施后,国内手游市场略冷清,是不是各家的新游戏都在排队等审核。媒体们除了之前竞相追捧《Pokemon Go》热闹了一把,似乎也听不到什么声音了。直到最近几天,突然听见好几人都提到同一个游戏,网上还有人表示朋友圈被它刷屏了。(不过现在微信已经悍然屏蔽了它的分享)...
View Articleattrs package in Python
It is very rare that you learn something that completely changes how you program. Reading this post about the attrs package in python was a revelation to me. Coming from C++, I am not too big a fan on...
View Article关于邮件的伪造
其实关于这个问题,实际上是源自项目开发中公司要求当用户注册时自动发送1个随机的验证码到其对应的邮箱。而公司方面又没有提供什么资源,只能我们2个后端想办法。 偶然的机会下,发现sendmail可以实现这样的功能,而自己想通过python来实现同样的功能。...
View ArticlePython Mock类进行单元测试
数据类型、模型或节点――这些都只是mock对象可承担的角色。但mock在单元测试中扮演一个什么角色呢? 有时,你需要为单元测试的初始设置准备一些“其他”的代码资源。但这些资源兴许会不可用,不稳定,或者是使用起来太笨重。你可以试着找一些其他的资源替代;或者你可以通过创建一个被称为mock的东西来模拟它。Mocks能够让我们模拟那些在单元测试中不可用或太笨重的资源。...
View ArticlePython | 为什么优化代码?
通过优化代码来降低运行时间是一件十分有意义的工作。然而,大部分情况下,优化是编写软件的最后一个步骤,并且通常是在不得不优化的情况下进行的。如果你的代码可以在能够接受的时间范围内运行完成,那么优化并不是必需的。...
View Articlefreeswitch嵌入python脚本
操作系统:debian8.5_x64 freeswitch 版本 : 1.6.8 python版本:2.7.9 开启python模块 安装python lib库 apt-get install python-dev编辑modules.conf,开启python模块: languages/mod_python编译安装: ./configure && make &&...
View ArticleThe Six Commandments of Good Code: Write Code that Stands the Test of Time
Humans have only been grappling with the art and science of computer programming for roughly half a century. Compared to most arts and sciences, computer science is in many ways still just a toddler,...
View ArticleIntroduction to Trainspotting
Here at Silicon Valley Data Science, we have a slight obsession with the Caltrain. Our interest stems from the fact that half of our employees rely on the Caltrain to get to work each day. We also...
View ArticleDjango Tips #14 Using the Messages Framework
Keeping the users of your application aware of what is going on makes a huge difference in the user experience. If there is something users hate more than slow applications, it is applications that...
View ArticleHow to Tune the Number and Size of Decision Trees with XGBoost in Python
Gradient boosting involves the creation and addition of decision trees sequentially, each attempting to correct the mistakes of the learners that came before it. This raises the question as to how many...
View ArticleBokeh 0.12.2 发布,Python 交互式可视化库
Bokeh 0.12.2 发布了,Bokeh (Bokeh.js) 是一个 python 交互式可视化库,支持现代化 Web 浏览器,提供非常完美的展示功能。Bokeh 的目标是使用D3.js 样式提供优雅,简洁新颖的图形化风格,同时提供大型数据集的高性能交互功能。Boken 可以快速的创建交互式的绘图,仪表盘和数据应用。 改进日志如下: * bugfixes: - #4612 Updating...
View Article我的开源世界观
我是一个python程序员,在Web开发中我会用到一大堆的开源项目,如linux、Python、Emacs、Spacemacs、Httpie、Flask、Requests、Sentry、IPython、Pyramid、Mako、Oh My Zsh等等。无法想象没有它们,我该如何工作。 相信你看到上述列表中出现的项目名字,有些也很熟悉,甚至是经常和它们在打交道。...
View Articlepython学习 文件操作
一、python打开文件 #=====================python 文件打开方式 open()=====================# open(fileName,type) type="r" 以只读方式打开文件 ,该文件必须存在file_r=open("E:\\python\\hello.txt","r");# open(fileName,type)...
View ArticleModules should never raise core Python exceptions
Today I discovered that the zipfile module raises RuntimeError if you ask it to read a file from an encrypted ZIP archive and do not give it the right password (or don't give it a password at all). I...
View ArticleMegaman: Scalable Manifold Learning in Python; James McQueen, Marina Meil,...
Megaman: Scalable Manifold Learning in python James McQueen, Marina Meil, Jacob VanderPlas, Zhongyue Zhang ; 17(148):15, 2016. Abstract Manifold Learning (ML) is a class of algorithms seeking a...
View ArticlePymanopt: A Python Toolbox for Optimization on Manifolds using Automatic...
Pymanopt: A python Toolbox for Optimization on Manifolds using Automatic Differentiation James Townsend, Niklas Koep, Sebastian Weichwald ; 17(137):15, 2016. Abstract Optimization on manifolds is a...
View ArticlePython监控服务端口并报警
最近发现公司的测试环境中有个Socket服务的端口总是莫名其妙Down掉,但是服务却正常运行着,看样子是僵死了。。。 虽然是测试环境,但是也不能这样放着不管,于是连夜写了一个简单的监控脚本。因为服务器是windows的,所以要用到wmi模块。逻辑如下: 1、用wmi模块获取系统中处于停止状态的服务,生成一个字典。...
View Article