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 / create_kg_dog_breed_ident_sub.py
Created January 18, 2018 14:33
Create Kaggle Dog Breed Identification Challenge submission.csv file
# Step - Submit Predictions
# We have finished training and ready to run predictions on the test set.
log_test_preds = learn.predict(is_test=True)
# Convert log predictions to just probabilities (predictions).
test_preds = np.exp(log_test_preds)
# Create the submission file using the probabilities
# Get a list of image file names from the test data loader
im_fnames = data.test_dl.dataset.fnames