雕虫「晓」技

「保持更新啊朋友」

Matplotlib字体设置

matplotlib字体机制、字体缓存、修改字体、中文字体设置

简单记录一下今天在matplotlib中尝试切换字体的过程 1. matplotlib 的字体机制 我们举一个简单地例子 假设我们写了这样一段代码: 1 2 3 4 5 from matplotlib import pyplot as plt plt.plot(range(10)) plt.title("哈哈") plt.show() 如果在一台普通的电脑上运行,会有如下结果:...

Query Large Table in Go

Use go routine to accelrate query mysql in go

Take home message1: Query DB by bucket and use go routine to parallel them. Take home message2: All code is on Adoni/golang-query-large-table · GitHub Sometimes we need to load data from ...

Plot on Remote Server

Plot on server, show locally

For lots of data scientist or ML researchers, matplotlib, the popular Python-based graphing library, is one of the most useful tool for visualization. For example, use the code below can draw a str...

Python Coding Practice

I didn't say it's the best practice, so you know :)

Concurrent and multi-process It’s common to use services to do something in a company. In this situation, we want to use multiple processing to handle traffic delay. 1 2 3 from concurrent.futures...

Understand SVM (1)

In last post we introdue SVM. Now we want to solve it. Lagrangian Theory This section is based on the content of book Convex Optimization. Generally speaking, Lagrangian Theory can be used t...

Understand SVM (1)

In this post I gonna write something to understand SVM. Thanks to Professor Francesco Orabona’s explain and most content of this post is learned from his course Convex Optimization. What’s SVM SV...

Word2vec with Pytorch

In this post, we implement the famous word embedding model: word2vec. Here are the paper and the original code by C. Word2vec is so classical ans widely used. However, it’s implemented with pure C...

Badminton: Warming-up and Stretching

Translated from [here](http://bbs.badmintoncn.com/forum.php?mod=viewthread&tid=759835)

Neck Before turning your neck around, please do the following action first: Shoulder-Arm-Wrist Leg-Ankle

Tricks for Jupyter Notebook

Some tricks or interesting aspects of Jupyter Notebook

Profiling Firstly, install line_profiler. pip install line_profiler You can find more information about line_profiler in its GitHub repo. Sencondly, run this command (which is called magic) in ...

User Manual for Myself

Some common thing to use this template from https://github.com/Huxpro/huxpro.github.io

Header1 Use Latex:$$T_n=2^n-1$$ (in a new line), then the output is: \[T_n=2^n-1\] Or use Latex inline like \\( T_n=2^n-1 \\), then the output is: \( T_n=2^n-1 \) Header2 You can use url with ...