Blog Archives

CNTK integrated into Keras

June 13, 2017
By
CNTK integrated into Keras

Keras is a very convenient tool to build your deep learning model from scratch, it is so easy to use that it almost becomes the de-facto deep learning modeling framework in Kaggle competition.Keras used to support only TensorFlow and Theano, now, CNTK,...

Read more »

Google’s switch to G Suite

February 20, 2017
By
Google’s switch to G Suite

My paymenet information for this custom URL is expiring and Google told me to update the payment information. That's OK, I will do it. However, by switching to G Suite, Google makes paying this $10.00 so difficult that I decided it is not worthy to c...

Read more »

Install Theano under Anaconda3 Python 3.5

August 11, 2016
By
Install Theano under Anaconda3 Python 3.5

Update on 2017/01/05:With the release of Anaconda3-4.2.0 in September 2016, users are able to install mingw and libpython under conda, which makes  using Theano and keras in Python3.5 much easier.Here are the simple steps:1. Install Anaconda3-4.2....

Read more »

Add Table of Contents to your Jupyter Notebook

August 10, 2016
By
Add Table of Contents to your Jupyter Notebook

Jupyter notebook does not support Table Of Contents (ToC) out of box, unlike R Markdown. There are nbextensions that ppl made to support this. It is easy to add this capability, following these steps to add Table of Contents to your notebook: 1. F...

Read more »

Fast SQL moving average calculation without windowing functions

May 11, 2015
By
Fast SQL moving average calculation without windowing functions

In this post, I show a trick to do moving average calculation (can be extended to other operations requiring windowing functions) that is super fast. Often, SAS analysts need to conduct moving average calculation and there are several options by the or...

Read more »

sklearn DecisionTree plot example needs pydotplus

April 26, 2015
By

In Python, sklearn (scikit-learn)'s DecisionTree example uses pydot for plotting the generated tree: @here.But for Python 3, pydot has some issues with the string from dot_data.getvalue(), for example it will report "TypeError: startswith first arg mus...

Read more »

Migrating code pieces to GitHub

February 5, 2015
By
Migrating code pieces to GitHub

One of the original reasons for this blog was to keep track of my SAS code as well as its relevant context. That was the mindset when I was a SAS analyst, but now working in professional software company, using the right tool for versioning, col...

Read more »

%SVD macro with BY-Processing

December 18, 2014
By
%SVD macro with BY-Processing

For the Regularized Discriminant Analysis Cross Validation, we need to compute SVD for each pair of \((\lambda, \gamma)\), and the factorization result will be feed to the downdating algorithm to obtain leave one out variance-covariance matrix \(\hat{\...

Read more »

Experient downdating algorithm for Leave-One-Out CV in RDA

December 15, 2014
By
Experient downdating algorithm for Leave-One-Out CV in RDA

In this post, I want to demonstrate a piece of experiment code for downdating algorithm for Leave-One-Out (LOO) Cross Validation in Regularized Discriminant Analysis [1]. In LOO CV, the program needs to calculate the inverse of \(\hat{\Sigma}_{k\v}(\la...

Read more »

Control Excel via SAS DDE & Python win32com

December 15, 2014
By
Control Excel via SAS DDE & Python win32com

Excel is probably the most used interface between human and data. Whenever you are dealing with business people, Excel is the de facto means for all things about data processing. I used to only use SAS and Python for number crunching but in one of my r...

Read more »


Subscribe

Email:

  Subscribe