Curtain update
I took advantage of therecent update to JPS to experiment a bit with Curtain . I significantly retooled it towards one goal: separate the generation of the deployment package from the deployment...
View Article时间序列预测教程:如何利用 Python 预测波士顿每月持械抢劫案数量?
编者按:本文是澳大利亚知名机器学习专家 Jason Brownlee 撰写的教程,极其全面细致,一步步向读者解释如何操作,以及为什么这么做。雷锋网 (公众号:雷锋网) 整理编译,特与大家分享。更多AI开发技术文章,请关注AI研习社(微信号:okweiwu)。 Jason Brownlee:时间序列预测法是一个过程,而获得良好预测结果的唯一途径是实践这个过程。...
View ArticleDjango最新版(1.10.5)在SAE上面部署流程
Django最新版(1.10.5)在SAE和pythonanywhere上面部署流程 一、Django在SAE上的部署 1、注意事项: 将整个Django项目准备好,是Project,不是app。 SAE平台支持的Django版本貌似只有1.4(或1.8)。 SAE平台不支持SQLite3,所以想在SAE上面省去数据库的费用已经不可能了。 2、准备事项: 首先你准备好了Django项目。...
View Articleflask 源码解析:上下文
这是 flask 源码解析系列文章的其中一篇,本系列所有文章列表: flask 源码解析:简介 flask 源码解析:应用启动流程 flask 源码解析:路由 flask 源码解析:上下文 flask 源码解析:请求 上下文(application context 和 request context) 上下文一直是计算机中难理解的概念,在 知乎的一个问题 下面有个很通俗易懂的回答:...
View ArticlePython的字符串编码
python2的编码 在Python2中,str和unicode都是basestring的子类。 str是unicode经过编码后的字节组成的序列。 utf-8编码的str是可变长度,节省空间。unicode占固定长度字节,浪费空间。所以网络传输或者保存文件通常会使用unf-8. basestring /\ /\ /\ /\ /\ /\ /decode\ str-------->unicode...
View ArticlePython高级编程之初识生成器
在阅读这篇文章以前,你应该已经了解python中的迭代器。如果不清楚的话,可以参考我的另一篇文章: 《Python高级编程之初识迭代器》 1. yield语句 在之前的文章中,我们使用类来创建自己的迭代器,实现过程稍微麻烦一点: class yrange: def __init__(self, start=0, stop=0): self.start = start self.stop =...
View Article从头开始:用Python实现决策树算法
决策树算法是一个强大的预测方法,它非常流行。因为它们的模型能够让新手轻而易举地理解得和专家一样好,所以它们比较流行。同时,最终生成的决策树能够解释做出特定预测的确切原因,这使它们在实际运用中倍受亲睐。 同时,决策树算法也为更高级的集成模型(如 bagging、随机森林及 gradient boosting )提供了基础。...
View Article隐藏的瑰宝:10个好用但容易被忽视的Python库
python是一门非常成功的语言,有着非常庞大的本地和第三方库,这也因此造成了许多有用的库被大家所忽视和遗忘。了解更多的知识库可以让工作事半功倍,在这里我们推荐其中的10个好用但容易被忽视的Python库。 Pillow 用途:快速的图像处理 说明:大多数Python的用户在进行图像处理的时候都习惯使用PIL(Python Imaging...
View ArticleUsing Python to find corrupted images
Catch up on this series: Part 1: Automating repetitive tasks for digital artists with python Part 2: Python file-management tricks for digital artists If you're working with images on a computer,...
View ArticleLearning Model Building in Scikit-learn : A Python Machine Learning Library
Pre-requisite: Getting started with machine learning scikit-learn is an open source python library that implements a range of machine learning, pre-processing, cross-validation and visualization...
View ArticleIpyvolume: New 3d plotting library for the Jupyter/IPython notebook
ipyvolume Ipython widget for rendering 3d volumes and glyphs (e.g. scatter and quiver) in the Jupyter notebook. Plots can be exported as standalone html, and render in stereo to show it in virtual...
View ArticlePython 高级编程之列表推导式
1. 一个简单的例子 在python中,如果我们想修改列表中所有元素的值,可以使用 for 循环语句来实现。 例如,将一个列表中的每个元素都替换为它的平方: >>> L = [1, 2, 3, 4, 5] >>> for i in range(len(L)): ... L[i] = L[i] ** 2 >>> L [1, 4, 9, 16,...
View ArticleBsidesSF CTF 2017 web writeups
I joined the infamous ENOFLAG team to play the BsidesSF CTF 2017 last weekend. I managed to solve the majority of web challenges and I'd like to share the solutions including a Jinja2 RCE. Table of...
View Article近况
最近博客更新比较频繁了,但事实上我过的一点都不闲。之前很多时候需要了解一个东西,搜了半天,知道了答案,过了一段事件,又忘了。所以索性还是记到博客上来。但我是鄙视复制粘贴的博客的,这里发出来的东西,都是我自己整理的。即使我整理的不好呢,下面还提供了参考性很强的链接。这些都是我弄明白问题真正参考的链接,所以还是有价值的。...
View Article《Problem Solving with Algorithms and Data Structures using Python》 的学习笔记和 ...
《Problem Solving with Algorithms and Data Structures using python》 的学习笔记和课后作业(一) 包含本书第一章,第二章。 这本书的 豆瓣评分 高达9.3,python作为接近算法伪码的一种脚本语言,其实用它写算法是极好的,可以将注意力集中在算法本身。...
View ArticleLogistic Regression 原理及推导 python实现
Logistic Regression 原理及推导 python实现 4天前来源:CSDN博客 一、问题引入首先,Logistic回归是一种广义的线性回归模型,主要用于解决二分类问题。比如,现在我们有N个样本点,每个样本点有两维特征x1和x2,在直角坐标系中画出这N个样本的散点图如下图所示, php?url=0Fftm4NLsv" alt="Logistic Regression 原理及推导...
View ArticleIntroduction to NumExpr-3
I've been working on a new branch of the venerable NumExpr module for python. It's a fairly major extension, as I discuss below. The alpha release can be cloned from GitHub as follows: git clone...
View ArticleAnacondaCon 2017: Python and the Emerging Practice of ‘Open Data Science’
+ For its first-ever official AnacondaCon user conference, data analytics software provider Continuum Analytics emphasized the idea of “open data science,” or the use of open source tools to analyze...
View Article5 Python libraries to lighten your machine learning load
Machine learning's exciting, but the work is complex and difficult. It typically involves a lot of manual heavy lifting -- assembling workflows and pipelines, setting up data sources, and shunting back...
View ArticleIPFire 2.19 Core Update 109 Hits Stable with Python 3 Support and OpenSSL 1.0.2k
After being in development for the past two weeks, IPFire 2.19 Core Update 109 has today hit the stable channel and it's a recommended upgrade for all those who use the IPFire 2.19 series of the...
View Article