微信群分享:小步慢跑,聊聊Python中的多线程
python作为一门优秀的编程语言,在TIOBE排行榜上,长期稳坐前十的位置。但在日常生活中,尤其是对编程小白来说,想学习一门新语言并不简单,有的甚至只能自学到一点皮毛。 为此,CSDN特向广大Python爱好者开设了学习班,帮助大家在学习Python的道路上少走弯路,事半功倍。上周五,“CSDN博客专家会客厅”走进班级,CSDN博客专家、技术达人刘冬作为受邀专家与大家畅聊Python。...
View ArticleIntroducing Kadro
I've created a small python project on github called kadro that may never get any traction but seems to scratch a small itch I've had with pandas. In this document I'd like to explain what it does....
View ArticleDeep Learning: Recurrent Neural Networks in Python
Discover the Artificial Science Behind Speech Recognition & Other Futuristic Sciences A recurrent neural network is a class of artificial neural network where connections form a directed cycle,...
View Articleganguli-lab/twpca: Time-warped principal components analysis (twPCA)
Time warped principal components analysis (TWPCA) Ben Poole :beer: , Alex H. Williams , Niru Maheswaranathan :soccer: TL;DR: simultaneously align and reduce the dimensionality of data with repeated...
View ArticleData Science: Deep Learning in Python
Artificial neural networks are the architecture that make Apple’s Siri recognize your voice, Tesla’s self-driving cars know where to turn, Google Translate learn new languages, and so many more...
View ArticleIn Python, strings are infinitely recursively iterable
Yesterday I posed the side question of what happened when you called the following code with flatten2(["abcdef",]) : def flatten2(inlst): olst = [] for i in inlst: try: it = iter(i) except TypeError:...
View ArticleParsing a Text File of Numeric Values using Python
I’ve been using python quite a bit recently, mostly because I’ve been looking at the TensorFlow and CNTK machine learning libraries which both have a Python interface. Some tools, such as Weka, use a...
View ArticlePython NLTK学习9(评估分类器的方法)
发表于:2天前阅读:61 本系列博客为学习《用python进行自然语言处理》一书的学习笔记。 引言 假设我们现在写了一个垃圾邮件分类器,它可以将邮件分类成垃圾邮件和非垃圾邮件。现在我们有一个总数为1000的测试样本集,其中垃圾邮件数量100,非垃圾邮件数量900。我们将分类器分类后的结果用下图表示: True positive 真阳性(TP):正确识别为相关的,也就是正确识别为垃圾邮件。 False...
View ArticleKeras:基于Theano和TensorFlow的深度学习库
catalogue 1. 引言2. 一些基本概念3. Sequential模型4. 泛型模型 1. 引言 Keras是一个高层神经网络库,Keras由纯python编写而成并基Tensorflow或Theano 简易和快速的原型设计(keras具有高度模块化,极简,和可扩充特性)支持CNN和RNN,或二者的结合支持任意的链接方案(包括多输入和多输出训练)无缝CPU和GPU切换0x1:...
View ArticlePyhon 获取文件夹的大小统计
通过python 实现文件夹大小的统计:主要是通过了 import os 中的几个方法来实现。 --Zero Python OS 文件/目录方法 首先介绍用到的几个函数,写了一个小demo便于理解。 os.getcwd() 返回当前路径。 os.listdir (path) 返回当前路径下的文件夹与文件(不向下二级递归)。 os.path.join() join()...
View ArticleBrian Okken: 27: Mahmoud Hashemi : unit, integration, and system testing
What is the difference between a unit test, an integration test, and a system test? Mahmoud Hashemi helps me to define these terms, as well as discuss the role of all testing variants in software...
View ArticlePython量子力学计算模拟以及数据可视化
python量子力学计算模拟以及数据可视化 一点号复旦大数据5小时前 复旦大数据 Pytlab,Python 中文社区专栏作者。主要从事科学计算与高性能计算领域的应用,主要语言为Python,C,C++。熟悉数值算法(最优化方法,蒙特卡洛算法等)与并行化...
View ArticleSelf-contained projects in python
An important concept for us is the notion of self-containment. For a project in development this means you find everything you need to develop and run the software directly in the one repository you...
View ArticlePython正则表达式之一:基础
前一阵,QA提了一个需求,我一看此需求用正则表达式最合适不过。考虑到之前每次使用正则表达式,都是临时抱佛脚,于是这次我就一遍完成任务一遍系统的学习了一遍正则表达式。主要参考PyCon2016上的一个视频 Regular Expressions 。我将分几篇文章对正则表达式进行总结。以下是第一部分,基础: 基础部分...
View ArticleInside the black box Part 2 Python
This is the second topic of the “Black Box” series, bringing us to python. For people interested in Part One, generated code, please click here . In this post I’ll go through how to take a simple...
View ArticleFrank Krueger: Fashionable REPL Prompts
Fashionable REPL Prompts I was writing a new language the other day and I thought, “this puppy needs a REPL”! But before I could write one, I had to decide how it would look and behave. I mean, I knew...
View ArticleiOS Photo Merge for Pythonista 3
One of the changes I've been trying to adopt with shifting more of myworkflows to my iPad has been to also move to my scripting from pythonista to Pythonista 3 . The key here is the original...
View ArticleOptimizing rolling feature engineering for time series data
In this blog post, I want to talk about how data scientists can efficiently perform certain types of feature engineering at scale. Before we dive into sample code, I will briefly set the context of how...
View ArticleCalling Go Functions from Other Languages
Starting with version 1.5, the Go compiler introduced support for several build modes via the -buildmode flag. Known as the Go Execution Modes , these build modes extended the go tool to compile Go...
View ArticleAnalyzing 4 Million Yelp Reviews with Python on AWS
Yelp runs a data challenge every year in which it invites people to explore its real-world datasets for unique insights. In this post, I show how to load the dataset into a Jupyter Notebook running on...
View Article