Do more for real intelligence | 为真人智慧加油

The word AI (artificial intelligence) is everywhere these days. Some of the best young minds are pouring into the field, and industry need is so dire that graduate schools can hardly keep PhD students until graduation.

In the craze of the artificial, real intelligence seems to have been forgotten. Here, the word “real intelligence” means intelligence from real human being.
American k-12 education continues to go downhill regardless of funding, more and more homeless people in New York City are begging in the streets (many are young and able), and millions of prime age citizens are not looking for work where many jobs are left unfilled.

An great collection of Python notebooks | Python 笔记本集

Here is a really great collection of Python notebooks with lots and lots of links.  We start with some appetizers:

But there are so many and so much more!! Okay, I am just going to copy (fork) most of this page:


  • Linear algebra with Cython. A tutorial that styles the notebook differently to show that you can produce high-quality typography online with the Notebook. By Carl Vogel.
  • More

To see a world in a grain of sand | 从沙粒看世界

Professor ShouCheng Zhang “passed away”.  He is forever with us, seeing a world in a grain of sand, holding infinity in hand.

这是所有视频里最喜欢的一个视频。 张教授深入浅出,循循善诱。尽管已经“离世”, 张教授永远和我们在一起从沙粒看世界,把永恒留在刹那时光。

We won’t quote any physics or mathematics from the video, except the title of the lecture, originally from William Blake, and dedicate them to Professor Zhang:

To see a world in a grain of sand
And a heaven in a wild flower,
Hold infinity in the palm of your hand
And eternity in an hour.


A CS lecture 马克十几年前教的课

It is amazing how much one can learn from this old video, recorded 2 years after Mark Zuckerburg left Harvard. Here is what I remember after listening 5 times:

1. Don’t follow what the big guys are doing. There is so much you can do on your own with technology (find your own problem and get to it)

Git and Github

Q: What is git?
A: It is a digit without di 🙂   Git is currently the best (commonly used) tool for version control 目前最好的版本控制系统.

Github can be used for your own code version control by mirroring the code of a folder in your own computer. It enables version control and has workflow capabilities.   Note: if you just want syncing, use Dropbox; git and Github can be a bit confusing.

TensorFlow and many ways to use it | TensorFlow人工智能系统

What is TensorFlow?    Since the best way to learn anything is to first draw upon what we already know, and then to practice.   Let’s start with what it looks like to things we already know, and then what is unique about it.

Relating to the old (or something we already knew): from its design, TensorFlow has something in common with kids’ programming environment Scratch and data mining tool such as SAS Enterprise Miner: all of them use graph to represent a process, and nodes/modules to represent specific blocks of functions, without having to write a ton of code.



SAS Enterprise Miner

SAS Enterprise Miner Project Flow Graph

Although not a drag-and-drop as Scratch, SAS EM,  TensorFlow does operate in similar way in that you define the graph of the process before any numerical computation is done.  According to Google (GCP), “With TensorFlow, you don’t need to be knowledgeable about the advanced math models and optimization algorithms needed to implement deep neural networks. Just download the sample code and read the tutorials and you can get started in no time. The library lowers the barrier to entry for machine learning significantly.” This has been what Scratch, SAS Enterprise Miner, Alteryx and other GUI have done for their specializations.

TensorFlow graph for a simple linear regression from my computer

TensorFlow graph for a simple linear regression from my computer

Why it is so special

There are many other great libraries that help facilitate deep learning as well.  TensorFlow is special because it is developed and maintained by Google, and it has more pros than other libraries.   Google gives it away because Google believes it will have more value if more people uses it.

One of many cool things showcased at Google TF 2017 Developer Summit is a project that detects eye disease based on the same technology that identifies cats from pictures.  What is special is that TF allows the project to focus more on solving the problem than figuring out all the code.

tensorflow detect eye disease

TensorFlow-based project that detects eye disease from images

On Github TensorFlow is one of the most starred repos, where there are many exciting resources and examples getting developed each day.

  • Repository of models:

Before watching the tutorial or reading example code, it would be better to have TensorFlow installed so that you can learn by doing instead of just watching.

copyright Magic Math Mandarin

I need to start the virtual enviroment, by typing “activate universe” at the command prompt. Then type “tensorboard –logdir=graphs”. Then follow the address provided by tensorboard on the command prompt, which says “http://IBM-THINK:6006”, not “http://localhost:6006”. This was successful.

tensorboard on Magic Math Mandarin

When I ran a different model but with the same graph folder, then I need to delete all contents in graph before running the different model.  Otherwise the graph stays in the old one while information in some other tabs of TensorBoard may change.

tensorboard on Magic Math Mandarin

Keyboard shortcuts 快捷键 (Kuàijié jiàn)

If you are like me who work on the computer about 16 hours daily on weekdays, your hands get tired of using the mouse.  Fortunately, these shortcuts 快捷键 Kuàijié jiàn)below help me put the mouse in the dungeon. 🙂