Skip to content

Instantly share code, notes, and snippets.

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

Cedric Chee cedrickchee

⚒️
⚡ 🦀 🐿️ 🐘 🐳 ⬡ ⚛️ 🚢 🚀 🦄 🍵
View GitHub Profile
@cedrickchee
cedrickchee / meditation_notes.md
Created December 29, 2018 10:18
Integrate mindfulness into your everyday life.
  1. Non-reactivity - body sensation
  2. Non-reactivity - working with sound
  3. Non-reactivity - thinking
  4. Non-reactivity - emotion
  5. The judging mind
  6. Mental noise as addiction
  7. External cues as mindfulness reminders
  8. Beginners mind
  9. One step at a time
  10. Grasping and aversion
@cedrickchee
cedrickchee / quote.md
Created December 30, 2018 12:54
Daily quote
  • Before you speak, let your words pass through three gates: Is it true? Is it necessary? Is it kind? — Rumi
@cedrickchee
cedrickchee / fastai_lesson_6_notes.md
Last active January 6, 2019 17:39
In what proportion would you use dropout vs. other regularization method such as weight decay and batch normalization?

Jeremy H.: There's dropout, weight decay, batch normalization and data augmentation. You pretty much always want batch normalization. Data augmentation we will see in a moment. So then it's really between dropout vs. weight decay.

I have no idea. I don't think I've seen anybody to find a compelling study on how to combine those two things. Can you always use one instead of the other? Why? Why not? I don't think anybody has figured that out.

I think in practice, it seems that you generally want a bit of both. You pretty much always want some weight decay. But you often also want a bit of dropout. But honestly, I don't know why.

I've not seen anybody really explain why or how to decide. So this is one of these things you have to try out and kind of get a feel for what tends to work for your kinds of problems. I think the defaults that we provide in the Python library should work pretty well in most situations but yeah, definitely play around with it.

Jeremy H.: ❗ Remember that [L2 regularization

@cedrickchee
cedrickchee / adaptive_embedding.py
Created January 12, 2019 09:48
PyTorch code of Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context paper by Google: https://arxiv.org/abs/1901.02860
class AdaptiveEmbedding(nn.Module):
def __init__(self, n_token, d_embed, d_proj, cutoffs, div_val=1,
sample_softmax=False):
super(AdaptiveEmbedding, self).__init__()
self.n_token = n_token
self.d_embed = d_embed
self.cutoffs = cutoffs + [n_token]
self.div_val = div_val
@cedrickchee
cedrickchee / web_stack_2019.md
Last active January 13, 2019 05:12
What is everyone's go-to web stack today in 2019?

If you plan to quickly put together a simple web app or website with React.JS.

YMMV depending on what you’re doing, but the following is a good bet if you want to make the project accessible to other developer, and it doesn't need to quickly scale.

Front-end

Use React.JS with TypeScript.

Create React App now makes it dead easy. Just run this command:

interface Array<T> {
  concat(...items: Array<T[] | T>): T[];
  reduce<H>(
    callback: (state: H, element: H, index: number, array: T[]) => H,
    firstState?: H): H;
  ···
}
@cedrickchee
cedrickchee / OctConv.md
Last active April 20, 2019 05:32
PyTorch implementation of Octave Convolution for ResNet
@cedrickchee
cedrickchee / google_colab_t4_gpu.md
Last active April 30, 2024 18:22
NVIDIA Tesla T4 GPU available in Google Colab

nvidia-smi and CPU check

nvidia-smi and CPU check

Show info about the deep learning software stack

fastai lib show_install

@cedrickchee
cedrickchee / startup_tools.md
Created May 8, 2019 11:14
Curated directory of the best startup tools

Here are the best startup tools of 2019 that will help you build out your startup business as quickly, cheaply, and efficiently as possible.

This is a curated list of tools for everything from productivity to web hosting to development tools to designing. Most of these tools are either free or have limited free option that is enough for startups. We love all the free services out there, but it would be good to keep it on topic. It's a bit of a grey line at times so this is a bit opinionated; feel free to suggest and contribute in this list.

Source Code Repos

  • GitHub — Unlimited public repositories and unlimited private repositories (up to 3 collaborators).
  • GitLab — Unlimited public and private Git repos with unlimited collaborators.
  • BitBucket — Unlimited public and private repos (Git and Mercurial) for up to 5 users with Pipelines for CI/CD.
  • Visual Studio — Unlimited private repos (Git a
@cedrickchee
cedrickchee / google_io_2019_keynote.md
Last active May 9, 2019 07:58
My notes for Google I/O 2019 Keynote Day 1

The theme for this year is "Building a more helpful Google for everyone".

  • Google Lens
  • Duplex on the web
  • Google Assistant - 100 GB DL model to 0.5 GB
    • voice is faster than typing (tapping) your phone
  • AI and bias, fair for everyone
    • Zebra model + TCAV
  • Data Privacy & Security
  • Privacy