Interview: Liran Zvibel of WekaIO
Joakim is the resident interviewer for the D Blog. He has also interviewed members of the D community for This Week in D and is responsible for the Android port of LDC . WekaIO is a San Jose, CA based...
View ArticleLeetCode 第1题:Two Sum
题目 给出一个整数数组,找出其中的两个整数,使相加等于指定整数,并返回这两个整数的索引。 假设每组输入只有一种解法,并且不能重复使用同一个元素。 举例: 给出 nums = [2, 7, 11, 15], target = 9, 因为 nums[0] + nums[1] = 2 + 7 = 9, 所以返回 [0, 1]. 思路 最简单也是最直接的想法就是两重循环直接遍历计算就能得到结果,时间复杂度为...
View ArticleRecommender Systems using Deep Learning in PyTorch from scratch
Photo by Susan Yin on Unsplash Recommender systems (RS) have been around for a long time, and recent advances in deep learning have made them even more exciting. Matrix factorization algorithms have...
View ArticleAccess the Python Windows file
I am new to python, and despite my searching, am unable how to properly access a file from a Python Script on windows with Python 3. I am trying to use Mongosm to import openstreetmap OSM data into...
View ArticleMicro:bit uPython: HTTP UART OBLOQ POST request to Flask server
In this tutorial we are going to learn how to send a HTTP POST request using a micro:bit board and a UART OBLOQ . Introduction In this tutorial we are going to learn how to send a HTTP POST request...
View ArticleEncoding Non-Printable Bytes in Python 3
TL;DR bytes -> str: In []: b'\x90\x90\x90\x90'.decode('latin-1') Out[]: '\x90\x90\x90\x90' str -> bytes: In []: '\x90\x90\x90\x90'.encode('latin-1') Out[]: b'\x90\x90\x90\x90' But Why Tho...
View ArticleWriting better code with pytorch and einops
Writing better code with pytorch and einops Rewriting building blocks of deep learning Below are some fragments of code taken from official tutorials and popular repositories (fragments taken for...
View ArticleScrapy - Scraping Different Web Pages into a Scrapy Script
I'm creating a web app that scrapes a long list of shoes from different websites. Here are my two individual scrapy scripts: http://store.nike.com/us/en_us/pw/mens-clearance-soccer-shoes/47Z7puZ896Zoi3...
View ArticleFibonacci Series using Python Programming
python Here we will see fibonacci series using Python programming. A fibonacci series isa series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. For...
View Article2.CNN图片多标签分类(基于TensorFlow实现验证码识别OCR)
上一篇实现了图片CNN单标签分类(猫狗图片分类任务) 地址: juejin.im/post/5c0739… 预告:下一篇用LSTM+CTC实现不定长文本的OCR,本质上是一种不固定标签个数的多标签分类问题 本文所用到的10w验证码数据集百度网盘下载地址(也可使用下文代码自行生成): pan.baidu.com/s/1N7bDHxIM… 利用本文代码训练并生成的模型(对应项目中的model文件夹):...
View ArticlePython’s Frameworks Comparison: Django, Pyramid, Flask, Sanic, Tornado,...
python frameworks can be divided into a few areas as Python is a very diverse language and can be used in various fields. Each of these fields has its own frameworks, some of which are more popular...
View ArticleInstall OpenCV 4 on Red Hat (C++ and Python)
OpenCV released OpenCV-3.4.4 and OpenCV-4.0.0 on 20th November. There have been a lot of bug fixes and other changes in these versions. The release highlights are as follows: OpenCV is now C++11...
View ArticleInstall OpenCV 3.4.4 on Red Hat (C++ and Python)
OpenCV released OpenCV-3.4.4 and OpenCV-4.0.0 on 20th November. There have been a lot of bug fixes and other changes in these versions. The release highlights are as follows: OpenCV is now C++11...
View Article一个非常牛逼的仓库
GitHub 上有个非常牛逼的仓库,作者收集了很多有趣且鲜为人知的 python “特性”。这些特性有些是真正的特性,也有些是陷阱,因为光从表面看起来就觉得反人类直觉,而所有的一切,其实都是 Cpython 内部实现中利弊之间的的权衡,有优点就有缺点。举个和字符串相关的特别例子: >>> a = "wtf" >>> b = "wtf" >>> a...
View Article深入理解Python[3] 当我们在讨论变量时,我们在讨论什么
这个概念其实大多数人都晓得了,就简单提一下 当我们给一个变量赋值时,python会在内存地址中新建一个对象,然后变量名只是指向了这个对象的内存地址,变量名只是一个引用而已 引用计数(Reference Counting) 定义 我们先看看维基百科对引用计数的定义...
View Articlecodingdirectional: Search for any duplicate file with python
Welcome to the new chapter of this remove duplicate file project. After creating a thread class, open a file and open a folder in the previous few chapters, we can now start to move toward our main...
View Article[译] 鲜为人知的数据科学 Python 库
PC:Hitesh Choudhary 来自于Unsplash python 是一个很棒的语言。它是世界上发展最快的编程语言之一。它一次又一次地证明了在开发人员职位中和跨行业的数据科学职位中的实用性。整个 Python 及其库的生态系统使它成为全世界用户(初学者和高级用户)的合适选择。它的成功和流行的原因之一是它强大的第三方库的集合,这些库使它可以保持活力和高效。...
View ArticleWrite a data frame on .xlsx too slow
I have a 40MB dataframe 'dfScore' I am writing to .xlsx。 the code is as follow, writer = pandas.ExcelWriter('test.xlsx', engine='xlsxwriter') dfScore.to_excel(writer,sheet_name='Sheet1') writer.save()...
View Articlegamingdirectional: Lets move on to the next game level!
Welcome back, in this article we will create the next level setup scene for our pygame project. Yesterday I had a deep thought about the method which we should use to do the game objects setup for each...
View Article我的2018年总结
开源贡献 把最自豪的事写在前面。 在看过 cpython 源码的一年,终于成功地为它打了一个补丁: 当时也是兴奋极了,补丁也得到顶级开发者的认可,能为编程语言贡献源码实在是太棒了。我想短时间内我很难再达到这个高度了。 同样的贡献开源项目的还有 thinkphp ,这是我还是 php 开发者的时候很喜欢的一个开发框架,而且还是国产的: 第一次使用它时还是大一时候的寒假,那时还是 3.1...
View Article