Skip to content

Instantly share code, notes, and snippets.

View cedrickchee's full-sized avatar
⚒️
⚡ 🦀 🐿️ 🐘 🐳 ⬡ ⚛️ 🚢 🚀 🦄 🍵

Cedric Chee cedrickchee

⚒️
⚡ 🦀 🐿️ 🐘 🐳 ⬡ ⚛️ 🚢 🚀 🦄 🍵
View GitHub Profile
@cedrickchee
cedrickchee / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
.;;, .;;,
` ;; ;; '
;; ;; , .;;;. .;;,;;;, .;;,;;;, .;;. .;;.
,;;;;;;;;;' ` ;; ` ;; ;; ` ;; ;; ` ;; ;; '
` ;; ;; .;;.;; ;; ;; ;; ;; ;; ;;
;; ;; ;; ;; , ;; ;; ;; ;; ;; ;;
. ;; ';;' `;;;';;' ;;';;' ;;';;' `;;';
';;' ;; ;; ;;
. ;; . ;; . ;;
@cedrickchee
cedrickchee / tensorflow_convnet_training_terminal_output.txt
Last active January 30, 2016 07:39
Training a simple TensorFlow neural network model for classifying handwritten digits from the MNIST dataset
(tensorflow)cedric@starlite:~
$ python -m tensorflow.models.image.mnist.convolutional
I tensorflow/stream_executor/dso_loader.cc:101] successfully opened CUDA library libcublas.so.7.0 locally
I tensorflow/stream_executor/dso_loader.cc:101] successfully opened CUDA library libcudnn.so.6.5 locally
I tensorflow/stream_executor/dso_loader.cc:101] successfully opened CUDA library libcufft.so.7.0 locally
I tensorflow/stream_executor/dso_loader.cc:101] successfully opened CUDA library libcuda.so locally
I tensorflow/stream_executor/dso_loader.cc:101] successfully opened CUDA library libcurand.so.7.0 locally
Extracting data/train-images-idx3-ubyte.gz
Extracting data/train-labels-idx1-ubyte.gz
Extracting data/t10k-images-idx3-ubyte.gz
@cedrickchee
cedrickchee / keybase.md
Created July 6, 2016 08:20
Verifying myself: I am cedric on Keybase.io

Keybase proof

I hereby claim:

  • I am cedrickchee on github.
  • I am cedric (https://keybase.io/cedric) on keybase.
  • I have a public key ASDdukLhsM81xTVoQwh_1iXa9n6MFspqB5Wy4R6xGfjBxAo

To claim this, I am signing this object:

@cedrickchee
cedrickchee / cs_and_math_reasoning.md
Created May 20, 2017 13:38
Some random thoughts

Computer Science and Mathematical Reasoning

The question is, what is intelligence and learning from the perspective of computer science and mathematical reasoning?

I think, prediction is the basic quality of intelligence, differentiation is the basic quality of learning.

@cedrickchee
cedrickchee / singapore_business_news.md
Last active November 30, 2017 03:35
SGInnovate unveils 'Deep Tech Nexus' strategy
@cedrickchee
cedrickchee / visualize.py
Created December 31, 2017 07:40
Snippet for a quick way to visualize the architecture of model by creating Graphviz representation (graph) of PyTorch computation graph.
#########################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the version 3 of the GNU General Public License #
# as published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
@cedrickchee
cedrickchee / fastai.md
Created January 1, 2018 13:35
Fast.ai "Soft Launch” of Deep Learning for Coders Part 1 Version 2 (v2) Course
@cedrickchee
cedrickchee / problem_then_solution.md
Last active January 18, 2018 05:12
The Art of Getting into Machine Learning

How to get into this field of work where you can actually work on developing and applying Machine Learning algorithms every day?

The following advice is based on this reply on HN:

I'm probably the worst example of how to get into this field of work, but since I do actually work on developing and applying ML algorithms every day, I think my case might be relevant. Firstly, my background is not in mathematics or computer science what-so-ever; I'm a classically trained botanist who started came at the issue of programming, computer science, and ML from a perspective of "I've got questions I want to ask and techniques I want to apply that I'm currently under prepared to answer."

Working as a technician for the USDA, I learned programming (R and python) primarily because I needed a better way to deal with large data sets than excel (which prior to 5 years ago was all I used). At some point I put my foot down and decided I would go no further until I learned t

@cedrickchee
cedrickchee / colab_gpus.md
Created January 25, 2018 05:43
Google Colab makes free GPUs available for folks to try out

Google-owned Kaggle adds free GPUs to online coding service.

Google says users of Colaboratory, its live coding mashup that works like a cross between a Jupyter Notebook and a Google Doc, now comes with free GPUs. Users can write a few code snippets, detailed here, and get access to two vCPUs with 13GB of RAM and, the icing on the cake - an NVIDIA K80 GPU, according to a comment from an account linked to Michael Piatek at Google.

Access Colaboratory here.

This is awesome! This definitely increases the usability of Colab notebooks, which I have already started using in my day-to-day experiments. I especially like the ability to save multiple checkpoints - a features sorely lacking in standard Jupyter Notebooks.

Free GPUS with very few strings attached:

  • Jupyter notebooks max running time of 12 hours, according to someone (Michael Piatek?) on the Colab team. What this means is,