25 Oct 2018
The classical Principal Component Analysis (PCA) is widely used for high-dimensional analysis and dimensionality reduction. Mathematically, if all the data points are stacked as column vectors of a (n, m)matrix $M$, PCA tries to decompose $M$ as
More …
10 Oct 2018
When scraping Chinese website using python (Windows 10 system) and requests, it usually returns “gb2312” code for Chinese characters. However, if one does not declare the encoding of requests, it uses its default encoding, which is not “gb2312”. The following example provides a solution to scrape Chinese contents and save them as Unicode encoding in a data file.
More …
03 Oct 2018
There are many single homes in Vancouver, and the majority of the homes are more than ten years old. Problems of electricity and water happen often. However, the cost of hiring an electrician or plumber is high. I am thinking to find a method to reduce the cost by employing modern technologies. For example, remote online consulting through mobile phones, which could solve some simple problems with small time and money costs. Another example would be install monitoring sensor and transmit the real-time status of things at home, good for predicting (machine learning) as well as revealing problems.
03 Oct 2018
The definition of Fourier transform (FT) is the given by
More …
03 Oct 2018
Machine learning and statistics are two close subjects. Here in this post, I try to provide a clear picture how they connect.
More …