<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>AI Big World</title>
    <description>A bee in the cosmos
</description>
    <link>https://changsin.github.io/</link>
    <atom:link href="https://changsin.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sun, 03 Jan 2021 05:32:09 +0000</pubDate>
    <lastBuildDate>Sun, 03 Jan 2021 05:32:09 +0000</lastBuildDate>
    <generator>Jekyll v3.9.0</generator>
    
      <item>
        <title>Maths for AI &amp; ML</title>
        <description>&lt;h1 id=&quot;slides&quot;&gt;Slides&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://t.co/pGP3mLNElt?amp=1&quot;&gt;Gradient-based Optimization&lt;/a&gt;: A short introduction to optimization in Deep Learning
by Christian S. Perone&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 25 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/25/ai-learning-math/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/25/ai-learning-math/</guid>
        
        <category>learning</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Free Online Books</title>
        <description>&lt;h1 id=&quot;english&quot;&gt;English&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.gutenberg.org/browse/scores/top&quot;&gt;Project Gutenberg&lt;/a&gt; mostly English books&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 24 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/books/2020/11/24/books-free-online/</link>
        <guid isPermaLink="true">https://changsin.github.io/books/2020/11/24/books-free-online/</guid>
        
        <category>free</category>
        
        
        <category>books</category>
        
      </item>
    
      <item>
        <title>React Resources</title>
        <description>&lt;h2 id=&quot;learning-react&quot;&gt;Learning React&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/benmvp/react-workshop&quot;&gt;React Workshop&lt;/a&gt; 
by &lt;a href=&quot;https://www.benmvp.com/&quot;&gt;Ben Ilegbodu&lt;/a&gt;, a Christ follower&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 22 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/22/web-react-resources/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/22/web-react-resources/</guid>
        
        <category>react</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Seq2Seq + Attention (Minsuk Heo)</title>
        <description>&lt;script src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;ul&gt;
  &lt;li&gt;[딥러닝 기계번역] 시퀀스 투 시퀀스 + 어텐션 모델 &lt;a href=&quot;https://www.youtube.com/watch?v=WsQLdu2JMgI&quot;&gt;youtube&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;problem&quot;&gt;Problem&lt;/h2&gt;
&lt;p&gt;How to translate a sequence of words to a target language&lt;/p&gt;

&lt;p&gt;For instance, ‘I love you’ =&amp;gt; ‘난 널 사랑해’&lt;/p&gt;

&lt;p&gt;Note that the order of tokens is different.
 The problem is now how can you build a model
  that will translate in the correct order of the target language
  all without explicit rules.&lt;/p&gt;

&lt;h2 id=&quot;sequence-to-sequence&quot;&gt;Sequence to sequence&lt;/h2&gt;

&lt;p&gt;To apply it in translation tasks, you can use RNN to build the context vector
that will output target language sequence.
The Encoder-Decoder architecture can be used where the encoder packs
 the source sentence information into the context vector
 from which the decoder extracts the target sentence.&lt;/p&gt;

&lt;p&gt;=&amp;gt; Problem with a fixed size context vector&lt;/p&gt;

&lt;p&gt;For a long sequence, the context vector window size is not enough&lt;/p&gt;

&lt;h2 id=&quot;attention-mechanism&quot;&gt;Attention mechanism&lt;/h2&gt;
&lt;p&gt;We can use encoder’s each state with current state to generate dynamic context vector.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Encode info into a sequence of vectors not in a single context vector&lt;/li&gt;
  &lt;li&gt;Chooses a subset of the vectors adaptively while decoding the translation&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;teacher-forcing&quot;&gt;Teacher forcing&lt;/h2&gt;
&lt;p&gt;When the prediction is wrong, 
force the target word (ground truth) as the next input to the decoder&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;results in a faster and more stable model&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reference&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://arxiv.org/pdf/1409.0473.pdf&quot;&gt;Neural Machine Translation&lt;/a&gt;
 by Jointly Learning to Align and Translate&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 22 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/22/nlp-seq2seq-attention/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/22/nlp-seq2seq-attention/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Stanford: NLP with Machine Learning (2)</title>
        <description>&lt;script src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;h1 id=&quot;lecture-2-word-vectors-2-and-word-senses&quot;&gt;Lecture 2: Word Vectors 2 and Word Senses&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1194/&quot;&gt;2019 Winter&lt;/a&gt;
 |  &lt;a href=&quot;https://stanford-pilot.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=68213ef7-af13-4e96-b154-ab25012bda54&quot;&gt;video&lt;/a&gt;
 | &lt;a href=&quot;http://web.stanford.edu/class/cs224n/slides/cs224n-2020-lecture02-wordvecs2.pdf&quot;&gt;slides&lt;/a&gt;
 | &lt;a href=&quot;http://web.stanford.edu/class/cs224n/readings/cs224n-2019-notes02-wordvecs2.pdf&quot;&gt;notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;lecture-plan&quot;&gt;Lecture Plan&lt;/h4&gt;
&lt;p&gt;Lecture 2: Introduction and Word Vectors&lt;/p&gt;

&lt;h3 id=&quot;main-idea-of-word2vec&quot;&gt;Main idea of word2vec&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Iterate through each word of the whole corpus&lt;/li&gt;
  &lt;li&gt;Predict surrounding words using word vectors&lt;/li&gt;
  &lt;li&gt;The probability distribution is found by
 the dot product of the word vectors by the softmax function&lt;/li&gt;
&lt;/ul&gt;

\[{U (outside)} 
{V (center)}
{U.{v_{4}}^T}  (dot product)
{softmax(U.{v_{4}}^T) (probabilities)}\]

\[\left[ \begin{array}
..... \\
..... \\
..... \\
..... \\
..... \\
..... \\
\end{array}
\right]_{U (outside)}

\left[ \begin{array}
..... \\
..... \\
..... \\
..... \\
..... \\
..... \\
\end{array}
\right]_{V (center)}

\left[ \begin{array}
. \\
. \\
. \\
. \\
. \\
. \\
\end{array}
\right]_{U.{v_{4}}^T}

\left[ \begin{array}
. \\
. \\
. \\
. \\
. \\
. \\
\end{array}
\right]_{softmax(U.{v_{4}}^T) probabilities}\]

&lt;ul&gt;
  &lt;li&gt;Same predictions at each position.&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;We want a model that gives a reasonably high probability estimate to
all words that occur in the context.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Word2vec maximizes objective function by putting similar words
nearby in space.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;2-optimization-gradient-descent&quot;&gt;2. Optimization: Gradient Descent&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;We have a cost function \(J(\theta)\) to minimize&lt;/li&gt;
  &lt;li&gt;Gradient Descent is an algorithm to minimize \(J(\theta)\)&lt;/li&gt;
  &lt;li&gt;Idea: for current value of \(\theta\), calculate gradient of \(J(\theta)\),
then take a small step in the direction of negative gradient &amp;amp; repeat.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;gradient-descent---updated-equation&quot;&gt;Gradient Descent - updated equation&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;(in matrix rotation)&lt;/p&gt;

    &lt;p&gt;\(\theta^{new} = \theta^{old} -
      \alpha{\nabla}_\theta J(\theta)\)&lt;/p&gt;
    &lt;blockquote&gt;
      &lt;p&gt;\(\alpha\) = step size or learning rate&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;(for a single parameter)&lt;/p&gt;

\[\theta_j^{new} = \theta_j^{old} -
      \alpha\frac{\alpha}{\alpha\theta_j^{old}} J(\theta)\]
  &lt;/li&gt;
  &lt;li&gt;Algorithm
    &lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;theta_grad&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;evaluate_gradient&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;J&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;corpus&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alpha&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta_grad&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Problem: \(J(\theta)\) is a function of all windows in the corpus (potentially billions!)
So \(\nabla_{\theta} J(\theta)\) is very expensive to compute.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Solution: Stochastic gradient descent (SGD)
    &lt;ul&gt;
      &lt;li&gt;Repeatedly sample windows and update after each one&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Algorithm:
    &lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;window&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sample_window&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;corpus&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;theta_grad&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;evaludate_gradient&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;J&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alpha&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;theta_grad&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Iteratively take gradients at each such window for SGD&lt;/li&gt;
  &lt;li&gt;But in each window, we only have at most 2m + 1 words so
\(\nabla_{\theta} J_t(\theta)\) is very sparse!&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;We might only update the word vector that actually appear!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Solution: either you need sparse matrix update operations to
only update certain rows of full embedding matrices U and V,
or you need to keep around a hash for word vectors&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If you have millions of word vectors and do distributed computing,
it is important to not have to send gigantic updates around!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Why two vectors? –&amp;gt; Easier optimization. Average both at the end
    &lt;ul&gt;
      &lt;li&gt;But can do algorithm with just one vector per word&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Two models
    &lt;ol&gt;
      &lt;li&gt;Skip-grams: Predict context (outside) words (position independent) given a center word&lt;/li&gt;
      &lt;li&gt;Continuous Bag of Words (CBOW): Predict center word from (bag of) context words&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;For additional efficiency: negative sampling
Train binary logistic regressions for a true pair (center word and word in its context window)
versus several noise pairs (the center word paired with a random word)&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;reference&quot;&gt;Reference&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Stanford &lt;a href=&quot;http://web.stanford.edu/class/cs224n/index.html#schedule&quot;&gt;NLP with Deep Learning&lt;/a&gt; by Chris Manning
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://online.stanford.edu/artificial-intelligence/free-content?category=All&amp;amp;course=6097&quot;&gt;videos&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://online.stanford.edu/courses/xcs224n-natural-language-processing-deep-learning&quot;&gt;New online certificate course in 2021&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;Chris Manning’s github &lt;a href=&quot;https://github.com/manning/Text-Analysis-for-Humanities-Research/tree/master/01-Intro%20to%20NLTK&quot;&gt;Text Analysis for Humanities Research&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://papers.nips.cc/paper/2013/file/9aa42b31882ec039965f3c4923ce901b-Paper.pdf&quot;&gt;Distributed Representations of Words and Phrases
and their Compositionality&lt;/a&gt; (Mikolov, et al. 2013) NeuIPS&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/21/nlp-with-ml-stanford-2/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/21/nlp-with-ml-stanford-2/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Experimental Creative Writing with the Vectorized Word</title>
        <description>&lt;h1 id=&quot;experimental-creative-writing-with-the-vectorized-word&quot;&gt;Experimental Creative Writing with the Vectorized Word&lt;/h1&gt;
&lt;p&gt;Sept 28-30, 2017 at &lt;a href=&quot;https://thestrangeloop.com&quot;&gt;thestrangeloop.com&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=L3D0JEA1Jdc&quot;&gt;youtube&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Understanding word vectors &lt;a href=&quot;https://gist.github.com/aparrish/2f562e3737544cf29aaf1af30362f469&quot;&gt;github&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Allison Parish is a poet and programmer and currently a member of the full-time faculty
 at NYU’s Interactive Telecommunications Program.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Poetry is just a language that calls for its own aesthetic properties.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The distributional hypothesis:
“linguistic items with similar distributions have similar meanings.”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://nlp.stanford.edu/projects/glove/&quot;&gt;GloVe&lt;/a&gt; (“Global vectors for word representations”)
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/stanfordnlp/GloVe&quot;&gt;github&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.speech.cs.cmu.edu/cgi-bin/cmudict&quot;&gt;CMU Pronouncing Dictionary&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/21/nlp-generated-poetry/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/21/nlp-generated-poetry/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>NLP Events</title>
        <description>&lt;h2 id=&quot;emnlp-2020&quot;&gt;&lt;a href=&quot;https://2020.emnlp.org/&quot;&gt;EMNLP 2020&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Empirical Methods in NLP 2020&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://slideslive.com/38940829&quot;&gt;Simultaneous Translation&lt;/a&gt;
by Liang Huang, Colin Cherry, Mingbo Ma, Naveen Arivazhagan, Zhongjun He
    &lt;ul&gt;
      &lt;li&gt;prefix-to-prefix, not seq-to-seq&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/21/nlp-events/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/21/nlp-events/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Business As Mission</title>
        <description>&lt;h2 id=&quot;training-programs&quot;&gt;Training programs&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.repurposing.biz/#home-1-section&quot;&gt;Repurposing Business&lt;/a&gt; by Brett Johnson
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.facebook.com/repsocial/&quot;&gt;facebook&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/21/business-as-mission/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/21/business-as-mission/</guid>
        
        <category>mission</category>
        
        
        <category>business</category>
        
      </item>
    
      <item>
        <title>Neurodivere News and Information</title>
        <description>&lt;h1 id=&quot;reference&quot;&gt;Reference&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://digitalcommons.ilr.cornell.edu/dandelionprogram/&quot;&gt;Dandelion Program&lt;/a&gt; - Cornell University
    &lt;ul&gt;
      &lt;li&gt;DXC &lt;a href=&quot;https://en.wikipedia.org/wiki/Dandelion_Program&quot;&gt;Dandelion Program&lt;/a&gt; Australian program for
neurodiversity.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 21 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/zettel/2020/11/21/zettel-neurodiverse-info/</link>
        <guid isPermaLink="true">https://changsin.github.io/zettel/2020/11/21/zettel-neurodiverse-info/</guid>
        
        <category>neurodiverse</category>
        
        
        <category>zettel</category>
        
      </item>
    
      <item>
        <title>Markdown Tips and Tricks</title>
        <description>&lt;script src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;h2 id=&quot;how-to-create-the-table-of-contents&quot;&gt;How to create the table of contents&lt;/h2&gt;
&lt;p&gt;This cannot be done automatically unfortunately, but you can do manually by adding hyperlinks for each section
and use the section ids to create a table of contents.&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gh&quot;&gt;# Table of Contents&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;1.&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;Introduction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;#introduction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then in the corresponding section, add an embedded hyperlink:&lt;/p&gt;
&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gh&quot;&gt;# Introduction &amp;lt;a name=&quot;introduction&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;subscript-and-superscript&quot;&gt;subscript and superscript&lt;/h2&gt;
&lt;p&gt;Add the tags sub or sup tags
x&lt;sub&gt;t&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;x&lt;span class=&quot;nt&quot;&gt;&amp;lt;sub&amp;gt;&lt;/span&gt;t&lt;span class=&quot;nt&quot;&gt;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;&lt;/span&gt;2&lt;span class=&quot;nt&quot;&gt;&amp;lt;/sup&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;bold--italics-and-bold-italics&quot;&gt;bold,  italics, and bold italics&lt;/h2&gt;
&lt;p&gt;Either use surrounding underscores or asterisks&lt;/p&gt;

&lt;p&gt;&lt;em&gt;italics&lt;/em&gt;
&lt;strong&gt;bold&lt;/strong&gt;
&lt;strong&gt;&lt;em&gt;bold italics&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;italics&lt;/em&gt;
&lt;strong&gt;bold&lt;/strong&gt;
&lt;strong&gt;&lt;em&gt;bold italics&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;ge&quot;&gt;_italics_&lt;/span&gt;
&lt;span class=&quot;gs&quot;&gt;__bold__&lt;/span&gt;
&lt;span class=&quot;gs&quot;&gt;___bold italics__&lt;/span&gt;_

&lt;span class=&quot;ge&quot;&gt;*italics*&lt;/span&gt;
&lt;span class=&quot;gs&quot;&gt;**bold**&lt;/span&gt;
&lt;span class=&quot;gs&quot;&gt;***bold italics**&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;*&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;math-formulae&quot;&gt;Math formulae&lt;/h2&gt;
&lt;p&gt;There are different ways of displaying math formulae.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;NB: Use an online math editor like an online &lt;a href=&quot;https://www.latex4technics.com/&quot;&gt;LaTex editor&lt;/a&gt; to check
markdown and latex syntax.
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols&quot;&gt;List of LaTex math symbols&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.latex4technics.com/&quot;&gt;LaTex editor&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;1-use-mathjax-header-preferred&quot;&gt;1. Use mathjax header (preferred)&lt;/h3&gt;
&lt;p&gt;Add a script header at the top of the markdown file&lt;/p&gt;
&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;script &lt;/span&gt;&lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;type=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then write your formula like these:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$$
M = &lt;span class=&quot;se&quot;&gt;\l&lt;/span&gt;eft( &lt;span class=&quot;se&quot;&gt;\b&lt;/span&gt;egin{array}{ccc}
x_{11} &amp;amp; x_{12} &amp;amp; &lt;span class=&quot;se&quot;&gt;\l&lt;/span&gt;dots &lt;span class=&quot;se&quot;&gt;\\&lt;/span&gt;
x_{21} &amp;amp; x_{22} &amp;amp; &lt;span class=&quot;se&quot;&gt;\l&lt;/span&gt;dots &lt;span class=&quot;se&quot;&gt;\\&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;\v&lt;/span&gt;dots &amp;amp; &lt;span class=&quot;se&quot;&gt;\v&lt;/span&gt;dots &amp;amp; &lt;span class=&quot;se&quot;&gt;\l&lt;/span&gt;dots &lt;span class=&quot;se&quot;&gt;\\&lt;/span&gt;
&lt;span class=&quot;se&quot;&gt;\e&lt;/span&gt;nd{array} &lt;span class=&quot;se&quot;&gt;\r&lt;/span&gt;ight)
$$

$$x_{1,2} = &lt;span class=&quot;se&quot;&gt;\f&lt;/span&gt;rac{-b &lt;span class=&quot;se&quot;&gt;\p&lt;/span&gt;m &lt;span class=&quot;se&quot;&gt;\s&lt;/span&gt;qrt{b^2-4ac}}{2b}$$
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;They are rendered separately as:&lt;/p&gt;

\[M = \left( \begin{array}{ccc}
    x_{11} &amp;amp; x_{12} &amp;amp; \ldots \\
    x_{21} &amp;amp; x_{22} &amp;amp; \ldots \\
    \vdots &amp;amp; \vdots &amp;amp; \ldots \\
    \end{array} \right)\]

\[x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2b}\]

&lt;h3 id=&quot;2-latex-image-tags&quot;&gt;2. Latex image tags&lt;/h3&gt;

&lt;p&gt;Inserting an img html tag with the formula&lt;/p&gt;
&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://render.githubusercontent.com/render/math?math=e^{i \pi} = -1&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;will be rendered as:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://render.githubusercontent.com/render/math?math=e^{i \pi} = -1&quot; /&gt;&lt;/p&gt;

&lt;p&gt;A similar method is:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;![&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;\Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;https://latex.codecogs.com/svg.latex?x%3D%5Cfrac%7B-b%5Cpm%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;https://latex.codecogs.com/svg.latex?x%3D%5Cfrac%7B-b%5Cpm%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7D&quot; alt=&quot;\Large x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 20 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/20/coding-markdown-tips-and-tricks/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/20/coding-markdown-tips-and-tricks/</guid>
        
        <category>web</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Jekyll Tips and Tricks</title>
        <description>&lt;h2 id=&quot;files-and-folders&quot;&gt;Files and folders&lt;/h2&gt;
&lt;h3 id=&quot;file-names&quot;&gt;File names&lt;/h3&gt;
&lt;p&gt;A blog file needs to have the format of [year]-[month]-[day]-[name of the post].md&lt;/p&gt;

&lt;h3 id=&quot;folder-location&quot;&gt;Folder location&lt;/h3&gt;
&lt;p&gt;The blog files need to be under _posts folder, but you can create sub-folders and they will be picked up by
Jekyll as a sub-path in url. For instance, if you have ‘ai’ as s sub-folder, the url path will be&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;https://https://changsin.github.io/ai/2020/11/20/&amp;lt;blog name/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;image-files&quot;&gt;Image files&lt;/h3&gt;
&lt;p&gt;If you want to have images in your blog post, you need to have the images in a sub-folder.
The problem is the location of the image files need to be correctly specified.
For Jekyll, each blog post is mapped differently depending on the date.
The best way is to create a static sub-folder under assets and create links.&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    !&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;word2vec&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;https://changsin.github.io/assets/images/wordvec_overview.png&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Fri, 20 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/20/coding-jekyll-tips-and-tricks/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/20/coding-jekyll-tips-and-tricks/</guid>
        
        <category>web</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Stanford: NLP with Machine Learning (1)</title>
        <description>&lt;script src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;h2 id=&quot;lecture-1-introduction-and-word-vectors&quot;&gt;Lecture 1: Introduction and Word Vectors&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1194/&quot;&gt;2019 Winter&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=8rXD5-xhemo&amp;amp;list=PLoROMvodv4rOhcuXMZkNm7j3fVwBBY42z&amp;amp;index=1&quot;&gt;video&lt;/a&gt;
 | &lt;a href=&quot;https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1194/slides/cs224n-2019-lecture01-wordvecs1.pdf&quot;&gt;slides&lt;/a&gt;
 | &lt;a href=&quot;http://web.stanford.edu/class/cs224n/readings/cs224n-2019-notes01-wordvecs1.pdf&quot;&gt;notes&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;lecture-plan&quot;&gt;Lecture Plan&lt;/h4&gt;
&lt;p&gt;Lecture 1: Introduction and Word Vectors&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;The course (10 mins)&lt;/li&gt;
  &lt;li&gt;Human language and word meaning (15 mins)&lt;/li&gt;
  &lt;li&gt;Word2vec introduction (15 mins)&lt;/li&gt;
  &lt;li&gt;Word2vec objective function gradients (25 mins)&lt;/li&gt;
  &lt;li&gt;Optimization basics (5 mins)&lt;/li&gt;
  &lt;li&gt;Looking at word vectors (10 mins or less)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;how-do-we-represent-the-meaning-of-a-word&quot;&gt;How do we represent the meaning of a word?&lt;/h3&gt;

&lt;h4 id=&quot;1-as-discrete-symbols&quot;&gt;1. As discrete symbols&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;“denotational semantics”: commonest linguistic way of thinking of meaning&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  signifier (symbol) ⟺ signified (idea or thing)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;aka. representational theory of meaning&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;How do we have usable meaning in a computer?
Common solution: WordNet, a thesaurus containing Lists of synonym lists and hypernyms (“is a” relationships)
    &lt;ul&gt;
      &lt;li&gt;Problems
        &lt;ul&gt;
          &lt;li&gt;Great as a resource but missing nuance&lt;/li&gt;
          &lt;li&gt;Missing new meanings of words&lt;/li&gt;
          &lt;li&gt;subjective&lt;/li&gt;
          &lt;li&gt;Requires human labor to create and adapt&lt;/li&gt;
          &lt;li&gt;Can’t compute accurate word similarity&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;representing-words-as-discrete-symbols&quot;&gt;Representing words as discrete symbols&lt;/h4&gt;

&lt;p&gt;In traditional NLP, we regard words as discrete symbols: a localist representation:
“hotel”, “conference”, “motel”, etc.&lt;/p&gt;

&lt;p&gt;Words can be represented by one-hot vectors&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;motel = [ 0 0 1 0 ]&lt;/li&gt;
  &lt;li&gt;hotel = [ 0 1 0 0 ]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Problems
The two vectors are orthogonal, no natural notion of similarity.&lt;/p&gt;

&lt;p&gt;Solution:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Could try to reply on &lt;a href=&quot;https://wordnet.princeton.edu/&quot;&gt;WordNet’s&lt;/a&gt; list of synonyms to get similarity?
    &lt;ul&gt;
      &lt;li&gt;But it is well-known to fail badly: incompleteness, etc.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Instead: learn to encode similarity in the vectors themselves&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;representing-words-by-their-context&quot;&gt;Representing words by their context&lt;/h4&gt;
&lt;p&gt;** Distributional semantics***: A word’s meaning is given by the words that
frequently appear close-by&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;One of the most successful ideas of modern statistical NLP!&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;word-vectors&quot;&gt;Word vectors&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Build a dense vector for each word, chosen so that it is similar to
vectors of words that appear in similar context.&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;word vectors are sometimes called word embeddings or word representations.
They are distributed representations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Word2vec (&lt;a href=&quot;https://papers.nips.cc/paper/2013/file/9aa42b31882ec039965f3c4923ce901b-Paper.pdf&quot;&gt;Mikolov et al. 2013&lt;/a&gt;)
 is a framework for learning word vectors&lt;/li&gt;
  &lt;li&gt;Idea
    &lt;ul&gt;
      &lt;li&gt;We have a large corpus of text&lt;/li&gt;
      &lt;li&gt;Every word in a fixed vocabulary is represented by a vector&lt;/li&gt;
      &lt;li&gt;Go through each position t in the text, which has a center word &lt;em&gt;c&lt;/em&gt; and context (“outside”) words &lt;em&gt;o&lt;/em&gt;&lt;/li&gt;
      &lt;li&gt;Use the similarity of the word vectors for &lt;em&gt;c&lt;/em&gt; and &lt;em&gt;o&lt;/em&gt; to calculate the probability of &lt;em&gt;o&lt;/em&gt; given &lt;em&gt;c&lt;/em&gt; (or vice versa)&lt;/li&gt;
      &lt;li&gt;Keep adjusting the word vectors to maximize this probability.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Objective function
For each position \(t = 1, ..., T\), predict context words within a window of fixed size m,
 given a center word \(w_{j}\)&lt;/li&gt;
&lt;/ul&gt;

\[L (\theta) = \prod_{t = 1}^{T} \prod_{ -m \leq j \leq m \hspace{0.8mm} (j \neq 0) } P(w_{t+j}|w_{t};\theta)\]

&lt;ul&gt;
  &lt;li&gt;\(\theta\) is all variables to be optimized&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective function \(J(\theta)\) is the (average) negative log likelihood:&lt;/p&gt;

\[J (\theta) = -\frac{1}{T}logL(\theta) =
    \prod_{t = 1}^{T} \prod_{ -m \leq j \leq m \hspace{0.8mm} (j \neq 0) }  log P(w_{t+j}|w_{t};\theta)\]

&lt;p&gt;&lt;img src=&quot;https://changsin.github.io/assets/images/wordvec_overview.png&quot; alt=&quot;word2vec&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Question: How to calculate \(P(w_{t+j} \| w_{t};\theta)\)?
    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;Answer: We will use two vectors per word w:&lt;/p&gt;

        &lt;ul&gt;
          &lt;li&gt;\(v_{w}\) when w is a center word&lt;/li&gt;
          &lt;li&gt;\(u_{w}\) when w is a context word&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then for a center word c and a context word o:&lt;/p&gt;

\[P(o|c) = \frac{exp(u_{o}^{T}v_{c})}{\sum_{w \in V} exp(u_{w}^{T}v_{c})}\]

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;\(u_{o}^{T}v_{c}\): dot product compares similarity of o and c.
  \(u^{T}v = u v = \sum_{i=1}^n u_i v_i\)
Larger dot product = larger probability&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Exponentiation makes anything positive
  \(exp(u_{o}^{T}v_{c})\)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Normalize over entire vocabulary to give probability distribution
  \(\sum_{w \in V} exp(u_{w}^{T}v_{c})\)
This is an example of the softmax function \(\mathbb{R}^n \rightarrow  (0, 1)^n\)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

\[softmax(x_i) = \frac{exp(x_i)}{\sum_{j=1}^n exp(x_j)} = p_i\]

&lt;ul&gt;
  &lt;li&gt;The softmax function maps arbitrary values \(x_i\)
 to a probability distribution \(p_i\)
    &lt;ul&gt;
      &lt;li&gt;“max” because it amplifies probability of the largest \(x_i\)&lt;/li&gt;
      &lt;li&gt;“soft” because it still assigns some probability to smaller \(x_i\)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Train a model by optimizing parameters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To train a model, we adjust parameters to minimize a loss.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;\(\theta\) represents all model parameters in one long vector&lt;/li&gt;
  &lt;li&gt;In our case with &lt;em&gt;d&lt;/em&gt;-dimensional vectors and &lt;em&gt;V&lt;/em&gt;-many words&lt;/li&gt;
&lt;/ul&gt;

\[\theta = \left[ \begin{array}{c}
v_{aardvark} \\
v_a \\
\vdots \\
v_{zebra} \\
u_{aardvark} \\
u_a \\
\dots \\
u_{zebra}
\end{array}
\right]
 \in \mathbb{R}^{2dV}\]

&lt;ul&gt;
  &lt;li&gt;Remember: every word has two vectors&lt;/li&gt;
  &lt;li&gt;We optimize these parameters by walking down the gradient&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;two-model-variants&quot;&gt;Two model variants&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;Skip-grams (SG):
Predict context (“outside”) words (position independent) given a center word&lt;/li&gt;
  &lt;li&gt;Continuous Bag of Words (CBOW):
Predict center word from (bag of) context words&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The lecture assumed Skip gram model so far.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://web.stanford.edu/class/cs224n/materials/Gensim%20word%20vector%20visualization.html&quot;&gt;Gensim word vector visualization&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Exploring Word Vectors &lt;a href=&quot;https://github.com/manning/CS224N/blob/master/assignments/hw1/exploring_word_vectors.ipynb&quot;&gt;code&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;reference&quot;&gt;Reference&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Stanford &lt;a href=&quot;http://web.stanford.edu/class/cs224n/index.html#schedule&quot;&gt;NLP with Deep Learning&lt;/a&gt; by Chris Manning
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://online.stanford.edu/artificial-intelligence/free-content?category=All&amp;amp;course=6097&quot;&gt;videos&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://online.stanford.edu/courses/xcs224n-natural-language-processing-deep-learning&quot;&gt;New online certificate course in 2021&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;Chris Manning’s github &lt;a href=&quot;https://github.com/manning/Text-Analysis-for-Humanities-Research/tree/master/01-Intro%20to%20NLTK&quot;&gt;Text Analysis for Humanities Research&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://papers.nips.cc/paper/2013/file/9aa42b31882ec039965f3c4923ce901b-Paper.pdf&quot;&gt;Distributed Representations of Words and Phrases
and their Compositionality&lt;/a&gt; (Mikolov, et al. 2013) NeuIPS&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Fri, 20 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/20/nlp-with-ml-stanford-1/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/20/nlp-with-ml-stanford-1/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Interesting ML Projects</title>
        <description>&lt;h2 id=&quot;130-ml-projects-solved-and-explained&quot;&gt;&lt;a href=&quot;https://medium.com/the-innovation/130-machine-learning-projects-solved-and-explained-605d188fb392&quot;&gt;130 ML Projects Solved and Explained&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://thecleverprogrammer.com/2020/07/20/next-word-prediction-model/&quot;&gt;Next Word Prediction Model&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://thecleverprogrammer.com/2020/07/28/machine-translation-model/&quot;&gt;Machine Translation Model&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://thecleverprogrammer.com/2020/08/24/summarize-text-with-machine-learning/&quot;&gt;Summarize Text with Machine Learning&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;coding-helper&quot;&gt;Coding Helper&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/graykode/ai-docstring&quot;&gt;AI DocString&lt;/a&gt; VS Extension that generates
python docstring automatically&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 19 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/19/ai-ml-projects/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/19/ai-ml-projects/</guid>
        
        <category>projects</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Latin quotes</title>
        <description>&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;fortuna favet audaci
(fortune favors the bold)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Thu, 19 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/writings/2020/11/19/zettel-latin/</link>
        <guid isPermaLink="true">https://changsin.github.io/writings/2020/11/19/zettel-latin/</guid>
        
        <category>zettel</category>
        
        
        <category>writings</category>
        
      </item>
    
      <item>
        <title>What is Word Embedding?</title>
        <description>&lt;script src=&quot;https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;h1 id=&quot;what-is-word-embedding&quot;&gt;What is word embedding?&lt;/h1&gt;
&lt;p&gt;Word embedding refers to the process of converting words to numbers
 so that they can be used for machine learning.&lt;/p&gt;

&lt;h2 id=&quot;word-encoding&quot;&gt;Word encoding&lt;/h2&gt;
&lt;p&gt;A simple idea is to simply represent the whole vocabulary indexing each word as a position in an array.
The result is a vector representation of each word.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;word&lt;/th&gt;
      &lt;th&gt;encoding&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;king&lt;/td&gt;
      &lt;td&gt;[1, 0, 0, 0]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;man&lt;/td&gt;
      &lt;td&gt;[0, 1, 0, 0]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;queen&lt;/td&gt;
      &lt;td&gt;[0, 0, 1, 0]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;woman&lt;/td&gt;
      &lt;td&gt;[0, 0, 0, 0]&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;A problem with this simple approach is that there is no similarity among related words.
For instance, king and queen are similar in terms of kingship but they are simply
separate points in the Euclidean space.
We need a representation that somehow preserves similarity measures among words.&lt;/p&gt;

&lt;h2 id=&quot;word-embedding&quot;&gt;Word embedding&lt;/h2&gt;
&lt;p&gt;Word embedding is the hidden layer’s representation of a word and its context after training.&lt;/p&gt;

&lt;h3 id=&quot;embedding-over-encoding&quot;&gt;Embedding over encoding&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Embedding is dense vector with similarity&lt;/li&gt;
  &lt;li&gt;Similarity comes from neighboring words&lt;/li&gt;
&lt;/ul&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;word&lt;/th&gt;
      &lt;th&gt;encoding&lt;/th&gt;
      &lt;th&gt;embedding&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;king&lt;/td&gt;
      &lt;td&gt;[1, 0, 0, 0]&lt;/td&gt;
      &lt;td&gt;[1, 2]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;man&lt;/td&gt;
      &lt;td&gt;[0, 1, 0, 0]&lt;/td&gt;
      &lt;td&gt;[1, 3]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;queen&lt;/td&gt;
      &lt;td&gt;[0, 0, 1, 0]&lt;/td&gt;
      &lt;td&gt;[5, 1]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;woman&lt;/td&gt;
      &lt;td&gt;[0, 0, 0, 0]&lt;/td&gt;
      &lt;td&gt;[5, 3]&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;ul&gt;
  &lt;li&gt;Word2Vec data generation (skip gram)
    &lt;ul&gt;
      &lt;li&gt;windows size = 1&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;how-to-represent-words&quot;&gt;How to represent words?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Discrete representation: The vast majority of rule-based and statistical NLP work
regards words as atomic symbols: hotel, conference, etc.
    &lt;ul&gt;
      &lt;li&gt;WordNet? - subjective, requires human labor to create and adapt&lt;/li&gt;
      &lt;li&gt;Simple idea: “One-hot encoded vectors” - very sparse vectors&lt;/li&gt;
      &lt;li&gt;Build a vector for a large vocabulary of words&lt;/li&gt;
      &lt;li&gt;Turn on the corresponding element for the word in the vector&lt;/li&gt;
      &lt;li&gt;The problem is that there is no similarity among related words:
 e.g., Seattle motel vs. Seattle hotel&lt;/li&gt;
      &lt;li&gt;localist representation&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Distributional similarity based representations
    &lt;ul&gt;
      &lt;li&gt;You can get a lot of value by representing a word by means of its neighbors.&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;One of the most successful ideas of modern statistical NLP.&lt;/p&gt;

        &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;You shall know a word by the company it keeps.
  --J. R. Firth (1957)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;

        &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Words that occur in similar context tend to have similar meanings.
    -- Harris (1954)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;

        &lt;p&gt;word embeddings = distributional semantic model, distrubuted representation
= semantic vector space = vector space model&lt;/p&gt;

        &lt;p&gt;Similar to later Wittgenstein&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Applications
    &lt;ul&gt;
      &lt;li&gt;compute similarities between words&lt;/li&gt;
      &lt;li&gt;create groups of related words&lt;/li&gt;
      &lt;li&gt;use as features in text classification&lt;/li&gt;
      &lt;li&gt;document clustering&lt;/li&gt;
      &lt;li&gt;NLP tasks:
        &lt;ul&gt;
          &lt;li&gt;Part-of-Speech tagging&lt;/li&gt;
          &lt;li&gt;Sentiment Analysis&lt;/li&gt;
          &lt;li&gt;Syntactic parsing&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Steps
    &lt;ol&gt;
      &lt;li&gt;Summarize the occurrence statistics for each word in a large document set&lt;/li&gt;
      &lt;li&gt;Apply some transformation to the counts: e.g., dimensionality reduction (SVD) 
to obtain dense real-valued vectors&lt;/li&gt;
      &lt;li&gt;Compute similarity between words as vector similarity:
cosine similarity between words = angle between vectors&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;Predict methods
    &lt;ol&gt;
      &lt;li&gt;In one setup, the goal is to predict a word given its context.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;limitations&quot;&gt;Limitations&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;Compositionality: multi-word or sentee&lt;/li&gt;
  &lt;li&gt;Words with multiple senses&lt;/li&gt;
  &lt;li&gt;Tailed to a specific similarity measure: only synonyms&lt;/li&gt;
  &lt;li&gt;Topical similarity: usually captured using topic models&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
  &lt;li&gt;Word meaning is defined in terms of vectors:
    &lt;ul&gt;
      &lt;li&gt;We will build a dense vector for each word type, chosen so that
it is good at predicting other words appearing in its context…
those other words also being represented by vectors…it all gets a bit recursive&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;distributed representation != distributional similarity&lt;/p&gt;

&lt;h4 id=&quot;basic-idea-of-learning-neural-network-word-embeddings&quot;&gt;Basic idea of learning neural network word embeddings&lt;/h4&gt;
&lt;p&gt;We define a model that aims to predict between a center word w&lt;sub&gt;t&lt;/sub&gt;
and context words in terms of word vectors.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;p(context|w&lt;sub&gt;t&lt;/sub&gt;)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;which has a loss function, e.g.,&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;J = 1 - p(w&lt;sub&gt;-t&lt;/sub&gt;|w&lt;sub&gt;t&lt;/sub&gt;)&lt;/p&gt;
  &lt;ul&gt;
    &lt;li&gt;-t means all other context words&lt;/li&gt;
    &lt;li&gt;We look at many positions t in a big language corpus.&lt;/li&gt;
    &lt;li&gt;We keep adjusting the vector representations of words to minimize this loss.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h4 id=&quot;directly-learning-low-dimensional-word-vectors&quot;&gt;Directly learning low-dimensional word vectors&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Learning representations by back-propagating errors (Rumelhart et al. 1986)&lt;/li&gt;
  &lt;li&gt;A neural probabilistic language model (Bengio et al., 2003)&lt;/li&gt;
  &lt;li&gt;NLP (almost) from Scratch (Collobert &amp;amp; Weston, 2008)&lt;/li&gt;
  &lt;li&gt;A recent, even simpler and faster model: word2vec (Mikolov et al. 2013) –&amp;gt; intro now&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;main-idea-of-word2vec&quot;&gt;Main idea of word2vec&lt;/h3&gt;
&lt;p&gt;predict between every word and its context&lt;/p&gt;

&lt;p&gt;Two algorithms&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Skip grams: Predict context words given target (position independent)&lt;/li&gt;
  &lt;li&gt;Continuous Bag of Words (CBOW): Predict target word from bag-of-words context&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two (moderately efficient) training methods&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Hierarchical softmax&lt;/li&gt;
  &lt;li&gt;Negative sampling&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
  &lt;li&gt;For each word t = 1 … T, predict surrounding words in a window of
“radius” m of every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Objective function: Maximize the probability of context word
given the current center word:&lt;/p&gt;

\[J'(\theta) = \prod_{T}^{t=1}\]

&lt;ul&gt;
  &lt;li&gt;Minsuk Heo’s &lt;a href=&quot;https://github.com/minsuk-heo/python_tutorial/blob/master/data_science/nlp/word2vec_tensorflow.ipynb&quot;&gt;word2vec tensorflow&lt;/a&gt;
tutorial
    &lt;h2 id=&quot;word-similarity&quot;&gt;Word Similarity&lt;/h2&gt;
  &lt;/li&gt;
  &lt;li&gt;Minsuk Heo &lt;a href=&quot;https://www.youtube.com/watch?v=if6tjHAT6iM&quot;&gt;자연어처리의 유사도 측정 방법(거리측정, 코사인 유사도)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Euclidean distance - using Pythagorean theorem&lt;/li&gt;
  &lt;li&gt;Cosine similarity - based on the angles - ignoring vector magnitude&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;\(similarity = cos(\theta) = \frac{A \cdot B}{||A|| \; ||B||}\)&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;$$&lt;/td&gt;
          &lt;td&gt; &lt;/td&gt;
          &lt;td&gt;A&lt;/td&gt;
          &lt;td&gt; &lt;/td&gt;
          &lt;td&gt;$$ is the distance of A&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/li&gt;
  &lt;li&gt;The angle between two terms cannot be greater than \(90^{\circ}\)
  because a word count being a negative number doesn’t make any sense.
  (if you plot word frequencies between two words as x &amp;amp; y coordinates)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;tf-hub-word2vec&quot;&gt;TF Hub Word2Vec&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Minsuk Heo &lt;a href=&quot;https://www.youtube.com/watch?v=p1ETojsnXYk&quot;&gt;TF Hub Word2Vec&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/minsuk-heo/tf2/blob/master/jupyter_notebooks/09.Word2Vec.ipynb&quot;&gt;github&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
  &lt;li&gt;Train a model to predict neighbor words from the current word and vice versa.&lt;/li&gt;
  &lt;li&gt;Use trained model’s hidden layer as word embedding.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;word2vec-by-jordan-boyd-graber&quot;&gt;Word2Vec by Jordan Boyd-Graber&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Jordan Boyd-Graber &lt;a href=&quot;https://www.youtube.com/watch?v=QyrUentbkvw&quot;&gt;Understanding Word2Vec&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;similarity is calculated using &lt;em&gt;cosine similarity&lt;/em&gt;:
  \(sim(d\overrightarrow{o}g, c\overrightarrow{a}t) =
      \frac{d\overrightarrow{o}g \cdot c\overrightarrow{a}t}
      {||d\overrightarrow{o}g|| \; ||c\overrightarrow{a}t||}\)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Finding the most similar words to \(d\overrightarrow{o}g\)
    &lt;ul&gt;
      &lt;li&gt;Compute the similarity from word \(\overrightarrow{v}\) to all other words&lt;/li&gt;
      &lt;li&gt;This is a single matrix-vector product:
 \(W \cdot \overrightarrow^{T}\)&lt;/li&gt;
      &lt;li&gt;Result is a |V| sized vector of similarities&lt;/li&gt;
      &lt;li&gt;Take the indices of the k-highest values&lt;/li&gt;
      &lt;li&gt;FAST! for 180k words, d=300: ~30sm&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Similarity to a group of words
    &lt;ul&gt;
      &lt;li&gt;Find me words most similar to cat, dog and cow”.&lt;/li&gt;
      &lt;li&gt;Calculate the pairwise similarities and rum them:
\(W \cdot c\overrightarrow{a}t + W \cdot c\overrightarrow{a}t\)&lt;/li&gt;
      &lt;li&gt;Now find the indices of the highest values as before&lt;/li&gt;
      &lt;li&gt;Matrix-vector products are wasteful. Better option:
\(W \cdot (c\overrightarrow{a}t + d\overrightarrow{o}g + c\overrightarrow{o}w)\)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;reference&quot;&gt;Reference&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://arxiv.org/abs/1301.3781&quot;&gt;Efficient Estimation of Word Representations in Vector Space&lt;/a&gt;
(Tomas Mikolov, Kai Chen, Greg Corrado, Jeffrey Dean)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Stanford &lt;a href=&quot;https://www.youtube.com/watch?v=ERibwqs9p38&quot;&gt;NLP with Deep Learning&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Udacity TensorFlow &lt;a href=&quot;https://github.com/tensorflow/examples/blob/master/courses/udacity_deep_learning/5_word2vec.ipynb&quot;&gt;word2vec&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/tmikolov/word2vec&quot;&gt;tmikolov&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 18 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/18/nlp-word2vec/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/18/nlp-word2vec/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>RNN</title>
        <description>&lt;h1 id=&quot;text-generation&quot;&gt;Text Generation&lt;/h1&gt;
&lt;h2 id=&quot;english&quot;&gt;English&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;TensorFlow tutorial &lt;a href=&quot;https://www.tensorflow.org/tutorials/text/text_generation&quot;&gt;Text Generation&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;TensorFlow tutorial &lt;a href=&quot;https://www.tensorflow.org/tutorials/text/nmt_with_attention&quot;&gt;Neural machine translation with attention&lt;/a&gt;
Spanish and English translation&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;David Foster’s &lt;a href=&quot;https://github.com/davidADSP/GDL_code/blob/master/06_01_lstm_text_train.ipynb&quot;&gt;LSTM Text Train&lt;/a&gt;
using Aesop’s THE FOX AND THE GRAPES&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Edureka &lt;a href=&quot;https://www.edureka.co/blog/recurrent-neural-networks/&quot;&gt;RNN&lt;/a&gt; tutorial by Anirudh Rao&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;NYU Deep Learning &lt;a href=&quot;https://github.com/Atcold/pytorch-Deep-Learning/blob/master/08-seq_classification.ipynb&quot;&gt;sequence classification&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;MIT Deep Learning &lt;a href=&quot;https://github.com/aamini/introtodeeplearning/blob/master/lab1/Part2_Music_Generation.ipynb&quot;&gt;Music Generation&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Stanford &lt;a href=&quot;https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1174/reports/2762076.pdf&quot;&gt;Music Composition using RNN&lt;/a&gt; pdf&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Karpathy’s &lt;a href=&quot;https://github.com/karpathy/char-rnn/blob/master/train.lua&quot;&gt;Char RNN&lt;/a&gt; - in Lua
using Tiny Shakespeare&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Sachi Parikh’s &lt;a href=&quot;https://github.com/parikhsachi/RNN-TV-script-generator/tree/master/tv-script-generation&quot;&gt;TV Script Generator&lt;/a&gt;
using Simpson’s episode script&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;chinese&quot;&gt;Chinese&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://arxiv.org/pdf/1604.01537.pdf&quot;&gt;Generating Chinese Classical Poems with RNN Encoder-Decoder &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;korean&quot;&gt;Korean&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.riss.kr/search/detail/DetailView.do?p_mat_type=be54d9b8bc7cdb09&amp;amp;control_no=51909e84bd4b8282ffe0bdc3ef48d419&amp;amp;outLink=K&quot;&gt;RNN을 이용한 한국어 감성분석 : 온라인 영화 후기를 중심으로&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;translation&quot;&gt;Translation&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://towardsdatascience.com/how-to-build-a-translation-pipeline-with-rnn-and-keras-57c1cf4a8a7&quot;&gt;How to build a translation pipeline with RNN and Keras&lt;/a&gt;
Spanish-English translation.
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/NechuBM/rnn_tutorial/blob/feature/simple-rnn/tutorials/simple_rnn/TranslationPipeline.ipynb&quot;&gt;Jupyter notebook&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 15 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/15/ai-learning-rnn/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/15/ai-learning-rnn/</guid>
        
        <category>learning</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>AI &amp; Deep Learning Concepts</title>
        <description>&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://neptune.ai/blog/pytorch-loss-functions?utm_source=facebook&amp;amp;utm_medium=post-in-group&amp;amp;utm_campaign=blog-pytorch-loss-functions&amp;amp;fbclid=IwAR0bMb2o_NViD_WwZU8nqcCCDlfn_K1oS5ToAUZn8SmttNCpmYUz0F9uFG4&quot;&gt;PyTorch Loss Functions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 14 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/14/ai-learning-loss-functions/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/14/ai-learning-loss-functions/</guid>
        
        <category>learning</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Interesting GAN Projects</title>
        <description>&lt;h1 id=&quot;gan&quot;&gt;GAN&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://ai.googleblog.com/2020/11/using-gans-to-create-fantastical.html?fbclid=IwAR2rVaW5rl2YHbixWjZ7FvnEAndJa3mdiiZjTa1czXbg4Zv5Bp3RCnsuQi4&quot;&gt;Using GANs to Create Fantastical Creatures&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://arxiv.org/pdf/2009.07047v1.pdf&quot;&gt;Old Photo Restoration via Deep Latent Space Translation&lt;/a&gt; 2015&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;skyar&quot;&gt;SkyAR&lt;/h2&gt;
&lt;p&gt;a vision-based method for video sky replacement and harmonization, 
which can automatically generate realistic and dramatic sky backgrounds in videos with controllable styles.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://arxiv.org/abs/2010.11800&quot;&gt;paper&lt;/a&gt;: Castle in the Sky: Dynamic Sky Replacement and Harmonization in Videos&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/jiupinjia/SkyAR&quot;&gt;code&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;faceapp&quot;&gt;Faceapp&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://edge.aif.tw/article-technology-behind-faceapp/&quot;&gt;換臉照怎麼做的？當紅Faceapp背後AI技術大解析&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;magic-sand&quot;&gt;Magic Sand&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/thomwolf/Magic-Sand&quot;&gt;Magic Sand&lt;/a&gt;
by Thomas Wolf: a software for operating an augmented reality sandbox.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;face-generation&quot;&gt;Face Generation&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/parikhsachi/GAN-generating-faces/blob/master/face_generation/dlnd_face_generation.ipynb&quot;&gt;GAN Face Generation&lt;/a&gt; high school student project&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 14 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/14/ai-gan-projects/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/14/ai-gan-projects/</guid>
        
        <category>gan</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Python Tips and Tricks</title>
        <description>&lt;h1 id=&quot;1-general&quot;&gt;1. General&lt;/h1&gt;
&lt;h2 id=&quot;how-to-check-the-version-of-python-module&quot;&gt;How to check the version of python module&lt;/h2&gt;
&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pip freeze
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;2-json-tips-and-tricks&quot;&gt;2. JSON tips and tricks&lt;/h1&gt;
&lt;h2 id=&quot;to-serialize-into-json&quot;&gt;To serialize into json&lt;/h2&gt;
&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;json&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;python_object&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;dict&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;json_dump&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;json&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dumps&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;python_object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;to-json-file&quot;&gt;To json file&lt;/h3&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;to_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;file_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;file_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;  &lt;span class=&quot;s&quot;&gt;'w'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;encoding&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;json_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;json_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;to-deserialize-from-json&quot;&gt;To deserialize from json&lt;/h2&gt;
&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;json&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;json_string&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;{}&quot;&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;json_object&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;json&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loads&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;json_string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;from-a-json-file&quot;&gt;From a json file&lt;/h3&gt;
&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;json&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;from_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;encoding&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;json&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;except&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Exception&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ex&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ex&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Thu, 12 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/12/coding-python-tip-and-tricks/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/12/coding-python-tip-and-tricks/</guid>
        
        <category>python</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>How to setup CVAT</title>
        <description>&lt;ul&gt;
  &lt;li&gt;docker ps after running docker-compose up -d
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                  NAMES
c59396ebc695        nginx:stable-alpine   &quot;/docker-entrypoint.…&quot;   2 minutes ago       Up 2 minutes        0.0.0.0:8080-&amp;gt;80/tcp   cvat_proxy
9adce835f4db        cvat/ui               &quot;/docker-entrypoint.…&quot;   2 minutes ago       Up 2 minutes        80/tcp                 cvat_ui
c09a03e4cd06        cvat/server           &quot;/usr/bin/supervisord&quot;   2 minutes ago       Up 2 minutes        8080/tcp, 8443/tcp     cvat
17b863adf3bf        postgres:10-alpine    &quot;docker-entrypoint.s…&quot;   2 minutes ago       Up 2 minutes        5432/tcp               cvat_db
ac12ddb3ea81        redis:4.0-alpine      &quot;docker-entrypoint.s…&quot;   2 minutes ago       Up 2 minutes        6379/tcp               cvat_redis
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Enter into the db container
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker exec -it cvat_db bash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Create user testworks
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;su - root -c &quot;createuser testuser&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Connect to the db
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker exec -it cvat_db psql cvat
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;Grant all privileges
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;grant all privileges on database cvat to testuser;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Mon, 09 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/09/ai-cvat/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/09/ai-cvat/</guid>
        
        <category>cvat</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>NLP Projects</title>
        <description>&lt;h2 id=&quot;the-super-duper-nlp-repo&quot;&gt;&lt;a href=&quot;The Super Duper NLP Repo&quot;&gt;The Super Duper NLP Repo&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/text/text_generation.ipynb&quot;&gt;Text Generation with an RNN&lt;/a&gt;
TensorFlow tutorial&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;rnn&quot;&gt;RNN&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;http://karpathy.github.io/2015/05/21/rnn-effectiveness/&quot;&gt;The Unreasonable Effectiveness of Recurrent Neural Networks&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.popit.kr/rnnrecurrent-neural-network%EA%B3%BC-torch%EB%A1%9C-%EB%B0%9C%EB%9D%BC%EB%93%9C%EA%B3%A1-%EC%9E%91%EC%82%AC%ED%95%98%EA%B8%B0/&quot;&gt;RNN(Recurrent Neural Network)과 Torch로 발라드곡 작사하기&lt;/a&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;code: &lt;a href=&quot;https://github.com/socurites/char-rnn-korean&quot;&gt;char-rnn-korean&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;bert&quot;&gt;BERT&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/graykode/commit-autosuggestions&quot;&gt;commit-autosuggestions&lt;/a&gt;:
interesting project done by an undergraduate to auto-suggest commit messages based on
&lt;a href=&quot;https://arxiv.org/pdf/2002.08155.pdf&quot;&gt;CodeBERT: A Pre-Trained Model for Programming and Natural Languages&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/microsoft/CodeBERT&quot;&gt;CodeBERT&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;gpt-2&quot;&gt;GPT-2&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/Morizeyao/GPT2-Chinese&quot;&gt;GPT2-Chinese&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://edge.aif.tw/chinese-text-generation-using-gpt-2-and-an-overview-of-gpt-3/&quot;&gt;從GPT-2到GPT-3，語言模型的未來？&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;gpt-3&quot;&gt;GPT-3&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://lambdalabs.com/blog/gpt-3/&amp;amp;usg=ALkJrhjlCw44JFGy0Da2gRQCN-WAeCn-fA&quot;&gt;GPT-3&lt;/a&gt;:
A Hitchhiker’s Guide&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;data&quot;&gt;Data&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/ubershmekel/WebstersEnglishDictionary&quot;&gt;Webster’s English Dictionary&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Sun, 08 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/08/nlp-projects/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/08/nlp-projects/</guid>
        
        <category>nlp</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Cracking the Creativity Code</title>
        <description>&lt;h1 id=&quot;cracking-the-creativity-code-discovering-ideas&quot;&gt;Cracking the Creativity Code: Discovering Ideas&lt;/h1&gt;
&lt;p&gt;This is the first part of two courses.
The first part is “discovering” ideas and the second part delivering the ideas.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Coursera: &lt;a href=&quot;https://www.coursera.org/learn/startup-entrepreneurship-discovering-ideas&quot;&gt;Cracking the Creativity Code: Discovering Ideas&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Matryoshka dolls - small to big&lt;/li&gt;
  &lt;li&gt;Cracking the Creativity Code: Zoom Out/Zoom In/Zoom Out Framework for More Creativity.&lt;/li&gt;
  &lt;li&gt;Creativity is widening the range of choice.&lt;/li&gt;
  &lt;li&gt;Ideas are “discovered”, not “created”.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;For most of us, the problem isn't that we aim too high and fail.
 It's just the opposite. We aim too low and we succeed.
  -- Ken Robinson
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Human individuals live far within their limits.
  -- William James
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ul&gt;
  &lt;li&gt;Motivation is the key.
    &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;The surprising fact is that all the variables which discriminate
 between creative and non-creative people are motivational.
-- John Hayes (1990)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;da-vincis-8-power-questions&quot;&gt;Da Vinci’s 8 Power Questions&lt;/h2&gt;
&lt;p&gt;What is your deepest passion?&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;When am I most ‘myself’?&lt;/li&gt;
  &lt;li&gt;What is the ONE THING I could do, or stop doing, that would most improve the quality of my life?&lt;/li&gt;
  &lt;li&gt;What is my greatest talent?&lt;/li&gt;
  &lt;li&gt;How can I get paid for doing what I love best?&lt;/li&gt;
  &lt;li&gt;Who are my most inspiring role models?&lt;/li&gt;
  &lt;li&gt;How can I change the world?&lt;/li&gt;
  &lt;li&gt;What is my deepest passion?&lt;/li&gt;
  &lt;li&gt;What will be my life’s legacy?&lt;/li&gt;
&lt;/ol&gt;

&lt;hr /&gt;
&lt;h2 id=&quot;simon-sinek-start-with-why&quot;&gt;Simon Sinek: Start with Why!&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/u4ZoJKF_VuA&quot;&gt;Start with why – how great leaders inspire action&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The golden circle: what, how, and why
Communicate inside out, not outside&lt;/p&gt;

&lt;h3 id=&quot;apple-example&quot;&gt;Apple example&lt;/h3&gt;
&lt;h4 id=&quot;how-other-companies-communicate&quot;&gt;How other companies communicate&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;We make great computers.&lt;/li&gt;
  &lt;li&gt;They are beautifully designed, simple to use and user friendly.&lt;/li&gt;
  &lt;li&gt;Wanna buy one?&lt;/li&gt;
&lt;/ol&gt;

&lt;h4 id=&quot;how-apple-communicates&quot;&gt;How Apple communicates&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;Everything we do, we believe in challenging the status quo.
We believe in thinking differently.&lt;/li&gt;
  &lt;li&gt;The way we challenge the status quo is by making our products
beautifully designed, simple to use and user friendly.&lt;/li&gt;
  &lt;li&gt;We just happen to make great computers.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;people-dont-buy-what-you-do-they-buy-why-you-do-it&quot;&gt;People don’t buy what you do. They buy why you do it.&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;What you do simply proves what you believe.&lt;/li&gt;
  &lt;li&gt;People will do the things that prove what they believe.&lt;/li&gt;
  &lt;li&gt;When you communicate from inside out,
we’re talking directly to the part of the brain that controls behavior,
and then we allow people to rationalize it with the tangible things we say and do.&lt;/li&gt;
  &lt;li&gt;The goal is not to sell to people who need what you have.
 It is to sell to people who believe what you believe.
 The goal is not just to hire people who need a job.
 It is to hire people who believe what you believe.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;wright-brothers-vs-samuel-pierpont-langley&quot;&gt;Wright brothers vs. Samuel Pierpont Langley&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Wright brothers were driven by a cause to change the course of history&lt;/li&gt;
  &lt;li&gt;Langley was in pursuit of the result, in pursuit of the riches.&lt;/li&gt;
  &lt;li&gt;The law of diffusion of innovation
    &lt;ul&gt;
      &lt;li&gt;Needs between 15 and 18 percent market penetration.&lt;/li&gt;
      &lt;li&gt;10% -&amp;gt; 15% “crossing the chasm” (Jeffrey Moore)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;TiVo failure
    &lt;ul&gt;
      &lt;li&gt;What you do simply serves as the proof of what you believe.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;martin-luther-king-jr-i-have-a-dream-speech&quot;&gt;Martin Luther King Jr. “I have a dream” speech&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;I believe - They showed up for what they believed.&lt;/li&gt;
  &lt;li&gt;not “I have a plan” speech&lt;/li&gt;
  &lt;li&gt;We follow the inspiring leader not because we have to,
but because we want to. We follow those who lead, not for them,
but for ourselves.&lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Sun, 08 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/08/business-startup-discovering-ideas/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/08/business-startup-discovering-ideas/</guid>
        
        <category>startup</category>
        
        
        <category>business</category>
        
      </item>
    
      <item>
        <title>How to Start a Startup</title>
        <description>&lt;h1 id=&quot;how-to-start-a-startup&quot;&gt;How to start a startup&lt;/h1&gt;
&lt;p&gt;Sam Altman, President of Y Combinator, and Dustin Moskovitz, Cofounder of Facebook, Asana,
 and Good Ventures, kick off the How to Start a Startup Course.
 Sam covers the first 2 of the 4 Key Areas: Ideas, Products, Teams and Execution;
  and Dustin discusses Why to Start a Startup.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCxIJaCMEptJjxmmQgGFsnCg&quot;&gt;How to Start a Startup&lt;/a&gt;:
youtube channel. Stanford lectures.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://genius.com/Sam-altman-lecture-1-how-to-start-a-startup-annotated&quot;&gt;lecture trascripts&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Slides
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/uio0cep4a2454ar/Lecture_1_Sam.pdf?dl=0&quot;&gt;Lecture 1 Sam&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/l4lnfilivmndmt4/Lecture_1_Dustin.pdf?dl=0&quot;&gt;Lecture 1 Dustin&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;lecture-1---how-to-start-a-startup-sam-altman-dustin-moskovitz&quot;&gt;Lecture 1 - How to Start a Startup (Sam Altman, Dustin Moskovitz)&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=CBYhVcO4WgI&amp;amp;list=PL5q_lef6zVkaTY_cT1k7qFNF2TidHCe-1&quot;&gt;Lecture video&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;1-idea&quot;&gt;1. Idea&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Spend some time to think through ideas, the long term effect.&lt;/li&gt;
  &lt;li&gt;The idea comes first; the startup comes second.&lt;/li&gt;
  &lt;li&gt;Best companies are mission-oriented.
    &lt;ul&gt;
      &lt;li&gt;The company should feel like an important mission.&lt;/li&gt;
      &lt;li&gt;Good startups take ten years.&lt;/li&gt;
      &lt;li&gt;Derivative ideas do not excite people.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Best ideas seem terrible at the beginning.
    &lt;ul&gt;
      &lt;li&gt;Need conviction in your own ideas.&lt;/li&gt;
      &lt;li&gt;Don’t need to worry about sharing your ideas.&lt;/li&gt;
      &lt;li&gt;Unpopular but right ideas.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;The growth of the market is more important than the growth of the company.
    &lt;ul&gt;
      &lt;li&gt;Can’t create a market&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Why now? – Sequoia
    &lt;ul&gt;
      &lt;li&gt;Build something you need&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;If it takes more than a sentence to explain, it’s not a good idea.&lt;/li&gt;
  &lt;li&gt;Think about the market first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;2-product&quot;&gt;2. Product&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Build something users love.&lt;/li&gt;
  &lt;li&gt;Talk to users.&lt;/li&gt;
  &lt;li&gt;Better to build something small users love than something a lot of people like.
    &lt;ul&gt;
      &lt;li&gt;The amount of love is the same. It’s just about how it is distributed.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Don’t worry about competitors.&lt;/li&gt;
  &lt;li&gt;It takes some fanatics to build a great product.&lt;/li&gt;
  &lt;li&gt;Pick a small number of users by hand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;lecture-2---team-and-execution-sam-altman&quot;&gt;Lecture 2 - Team and Execution (Sam Altman)&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=CVfnkM44Urs&amp;amp;list=PL5q_lef6zVkaTY_cT1k7qFNF2TidHCe-1&amp;amp;index=2&quot;&gt;Lecture 2 video&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;3-team&quot;&gt;3. Team&lt;/h3&gt;
&lt;p&gt;A. Cofounders: relentlessly resourceful. “James Bond”&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Know your cofounders - tough &amp;amp; calm&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;B. Try not to hire: have a high bar. Get a small number of dedicated people.&lt;/p&gt;

&lt;p&gt;C: Get the best people: 0 - 25% of your time.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Mediocre engineers do not build great companies.&lt;/li&gt;
  &lt;li&gt;Hire from people you already know (referrals).&lt;/li&gt;
  &lt;li&gt;Go for the aptitude, not experience in early days.
    &lt;ul&gt;
      &lt;li&gt;Are they smart?&lt;/li&gt;
      &lt;li&gt;Do they get things done?&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Do I want to spend a lot of time around?&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;Good communication skills&lt;/li&gt;
      &lt;li&gt;Manically determined&lt;/li&gt;
      &lt;li&gt;Pass the animal test (Paul Graham): be able to describe as an animal&lt;/li&gt;
      &lt;li&gt;Would feel comfortable reporting to them.
 Enjoy working with them. Or at least respect them.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Equity: be ready to give up to 10% to employees&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;D. You’ve hired the best - now keep them around.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;What motivates people: autonomy &amp;amp; mastery&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;E. Fire fast&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;persistently negative&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;4-execution&quot;&gt;4. Execution&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;CEO jobs
    &lt;ul&gt;
      &lt;li&gt;Set the vision&lt;/li&gt;
      &lt;li&gt;Raise money&lt;/li&gt;
      &lt;li&gt;Evangelize&lt;/li&gt;
      &lt;li&gt;Hire and manage&lt;/li&gt;
      &lt;li&gt;Make sure the entire company executes&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Can you get it done?
    &lt;ul&gt;
      &lt;li&gt;Focus:
        &lt;ul&gt;
          &lt;li&gt;What are you spending time and money on?&lt;/li&gt;
          &lt;li&gt;What are the two and three most important things?&lt;/li&gt;
          &lt;li&gt;Say no. A lot.&lt;/li&gt;
          &lt;li&gt;Set overarching goals. Repeat them.&lt;/li&gt;
          &lt;li&gt;Communicate.&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Intensity:
        &lt;ul&gt;
          &lt;li&gt;Relentless operating rhythm&lt;/li&gt;
          &lt;li&gt;Obsession with Execution Quality&lt;/li&gt;
          &lt;li&gt;Bias towards action - Indecisiveness is a startup killer.
            &lt;ul&gt;
              &lt;li&gt;Every time you talk to them, they’ve gotten new things done.&lt;/li&gt;
              &lt;li&gt;Do it incrementally&lt;/li&gt;
              &lt;li&gt;Quick&lt;/li&gt;
              &lt;li&gt;Do whatever it takes&lt;/li&gt;
              &lt;li&gt;Show up&lt;/li&gt;
              &lt;li&gt;Don’t give up&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Always keep momentum: keep growing
    &lt;ul&gt;
      &lt;li&gt;Save vision speeches for when you are winning.
When you are losing, you just have to have some small wins.
Sales fix everything.&lt;/li&gt;
      &lt;li&gt;Shipping product&lt;/li&gt;
      &lt;li&gt;Launching new features&lt;/li&gt;
      &lt;li&gt;Reviewing/reporting metrics regularly
        &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; The competitor to be feared is one who never bothers about you at all,
but goes on making his own business better all the time.
-- Henry Ford 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 08 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/08/business-startup-class-stanford/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/08/business-startup-class-stanford/</guid>
        
        <category>startup</category>
        
        
        <category>business</category>
        
      </item>
    
      <item>
        <title>JavaScript Dev Tools</title>
        <description>&lt;h2 id=&quot;to-develop-interactively-online&quot;&gt;To develop interactively online&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://codepen.io&quot;&gt;codepen&lt;/a&gt;: html, css, and js all in one editor online&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;nextjs-free-training&quot;&gt;Next.js free training&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Mastering &lt;a href=&quot;https://masteringnextjs.com/#course-overview&quot;&gt;Next.js&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 07 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/07/web-javascript-tools/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/07/web-javascript-tools/</guid>
        
        <category>javascript</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>What is Kaggle?</title>
        <description>&lt;p&gt;Kaggle is an online community for data scientists and machine learning practitioners.
It provides public datasets, tools, and resources to learn and collaborate with others.&lt;/p&gt;

&lt;h2 id=&quot;korean-hate-speech-detection&quot;&gt;Korean hate speech detection&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.kaggle.com/c/korean-hate-speech-detection&quot;&gt;Korean hate speech detection&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;mnist&quot;&gt;MNIST&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.kaggle.com/yassineghouzam/introduction-to-cnn-keras-0-997-top-6&quot;&gt;CNN Keras&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;how-autoencoders-work&quot;&gt;How Autoencoders work?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.kaggle.com/shivamb/how-autoencoders-work-intro-and-usecases&quot;&gt;How autoencoders work?&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 07 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/07/ai-kaggle-data/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/07/ai-kaggle-data/</guid>
        
        <category>kaggle</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>KIC TRT Bootcamp Day3</title>
        <description>&lt;h1 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h1&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#pivot&quot;&gt;When, Why, and How to Pivot&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#roadmap&quot;&gt;Product and Company Road Map&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#funding&quot;&gt;Funding&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;when-why-and-how-to-pivot-&quot;&gt;When, why and how to pivot &lt;a name=&quot;pivot&quot;&gt;&lt;/a&gt;&lt;/h1&gt;

&lt;p&gt;The tyranny of urgency&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Quarterly cadence - serves as an accountability mechanism&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;What is a Pivot?
    &lt;ul&gt;
      &lt;li&gt;When a startup shifts business strategy to accommodate industry, market, or customer&lt;/li&gt;
      &lt;li&gt;The process of direct and indirect feedback changing your business model&lt;/li&gt;
      &lt;li&gt;Iterations vs. Pivots
        &lt;ul&gt;
          &lt;li&gt;Iterations are course corrections&lt;/li&gt;
          &lt;li&gt;Pivots are painful - we were in the tire business, we’re now in apps&lt;/li&gt;
          &lt;li&gt;Not course correction&lt;/li&gt;
          &lt;li&gt;Slack - originally a gaming company&lt;/li&gt;
          &lt;li&gt;Odeo -&amp;gt; Twiiter&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;When to do a pivot?
        &lt;ul&gt;
          &lt;li&gt;Path to revenue is not there&lt;/li&gt;
          &lt;li&gt;Customer review interviews&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;When &amp;amp; Why
    &lt;ul&gt;
      &lt;li&gt;When - 90-180 days
        &lt;ul&gt;
          &lt;li&gt;Get out of your head and get in front of the customer&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;50-100 customer interviews&lt;/li&gt;
      &lt;li&gt;Build on email list&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;How to pivot
    &lt;ul&gt;
      &lt;li&gt;Are you staying in the same TAM?&lt;/li&gt;
      &lt;li&gt;Is the product wrong?&lt;/li&gt;
      &lt;li&gt;Is the brand wrong?&lt;/li&gt;
      &lt;li&gt;Focus on the problem first, solution second!&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;product-and-company-road-map-&quot;&gt;Product and Company Road Map &lt;a name=&quot;roadmap&quot;&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Product vision
    &lt;ul&gt;
      &lt;li&gt;Long term features&lt;/li&gt;
      &lt;li&gt;Startup with PROBLEM not product - pivot product/features around the problem&lt;/li&gt;
      &lt;li&gt;It won’t be what you ship first&lt;/li&gt;
      &lt;li&gt;What the world looks like before and after your product&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Product roadmap
    &lt;ul&gt;
      &lt;li&gt;What features and when&lt;/li&gt;
      &lt;li&gt;Quarterly targets based on
        &lt;ul&gt;
          &lt;li&gt;Budget&lt;/li&gt;
          &lt;li&gt;Available developers&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Estimating costs
    &lt;ul&gt;
      &lt;li&gt;Write specification
        &lt;ul&gt;
          &lt;li&gt;Required for launch&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Design &amp;amp; flow
        &lt;ul&gt;
          &lt;li&gt;Post project on fiverr.com&lt;/li&gt;
          &lt;li&gt;PPT/keynote first with design&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Test design and flow&lt;/li&gt;
      &lt;li&gt;Revise&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Company roadmap
    &lt;ul&gt;
      &lt;li&gt;Roadmap is NOT dependent on fundraising
        &lt;ul&gt;
          &lt;li&gt;If you raise the capital, you move things forward in the roadmap&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Where will you be in 18 and 36 months&lt;/li&gt;
      &lt;li&gt;Does it map to your financial model&lt;/li&gt;
      &lt;li&gt;Maps to use of proceeds&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Highlight key milestones
    &lt;ul&gt;
      &lt;li&gt;This is a bit of an eye chart, so highlight key milestones&lt;/li&gt;
      &lt;li&gt;Product ship dates&lt;/li&gt;
      &lt;li&gt;First revenue&lt;/li&gt;
      &lt;li&gt;Key hires: Hire two packs - for sales&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1E1m1K1rz2zsUowalsA_wZe9ourEIuvqQ0fqDF2SpPEY/edit#gid=156515862&quot;&gt;Quarterly Template&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;funding-101-&quot;&gt;Funding 101 &lt;a name=&quot;funding&quot;&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Fundraising fundamentals
    &lt;ul&gt;
      &lt;li&gt;Raising funds is not a sign of success. Cash flow is.&lt;/li&gt;
      &lt;li&gt;Control terms&lt;/li&gt;
      &lt;li&gt;Convertible debt&lt;/li&gt;
      &lt;li&gt;Needs a lead investor&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Fundraising 101
    &lt;ul&gt;
      &lt;li&gt;Stage appropriate capital = what’s the right money at the right time?
        &lt;ul&gt;
          &lt;li&gt;Early - angels, early stage VC’s&lt;/li&gt;
          &lt;li&gt;Later - large venture funds&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Control shifts - board roles, deal terms&lt;/li&gt;
      &lt;li&gt;Dilution - every round of funding you will sell 35-35% of new shares&lt;/li&gt;
      &lt;li&gt;Bad boards = bad enterprise value&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Angels
    &lt;ul&gt;
      &lt;li&gt;Invest in you and your passion&lt;/li&gt;
      &lt;li&gt;Like the market or idea&lt;/li&gt;
      &lt;li&gt;Have made money in the sector before&lt;/li&gt;
      &lt;li&gt;Deal type
        &lt;ul&gt;
          &lt;li&gt;Convertible note with o cap&lt;/li&gt;
          &lt;li&gt;Revenue but pre-product makes fit&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;“return the fund” deals that an produce &amp;gt; 10x&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Later stage = growth capital
    &lt;ul&gt;
      &lt;li&gt;Post product market fit&lt;/li&gt;
      &lt;li&gt;$10k in marketing spend = internal rate of return (IRR) of how many days?&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Fundraising process
    &lt;ul&gt;
      &lt;li&gt;Enterprise sales process - landing multiple planes at the same time&lt;/li&gt;
      &lt;li&gt;Top of the funnel
        &lt;ul&gt;
          &lt;li&gt;Research
            &lt;ul&gt;
              &lt;li&gt;Crunchbase (cheap) technation (UK)&lt;/li&gt;
              &lt;li&gt;Pitchbook (expensive)&lt;/li&gt;
              &lt;li&gt;Angelist&lt;/li&gt;
              &lt;li&gt;Competitive deals (w/ Exits)&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;Create a forwardable email
            &lt;ul&gt;
              &lt;li&gt;Ask for approval&lt;/li&gt;
              &lt;li&gt;Follow with intro&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Target investors
    &lt;ul&gt;
      &lt;li&gt;Targets - build of list of targets, look for linkedin and/or email introductions&lt;/li&gt;
      &lt;li&gt;They have invested in your market/stage in the past&lt;/li&gt;
      &lt;li&gt;They have board experience for your stage&lt;/li&gt;
      &lt;li&gt;They can help with strategic introductions
        &lt;ul&gt;
          &lt;li&gt;Investors&lt;/li&gt;
          &lt;li&gt;Customers&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Monthly updates
    &lt;ul&gt;
      &lt;li&gt;Using MailChimp free account
        &lt;ul&gt;
          &lt;li&gt;Investors - tagged&lt;/li&gt;
          &lt;li&gt;Customers&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;30 day intervals
        &lt;ul&gt;
          &lt;li&gt;What we thought&lt;/li&gt;
          &lt;li&gt;What we learned&lt;/li&gt;
          &lt;li&gt;What we are doing about it&lt;/li&gt;
          &lt;li&gt;Where we need help&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Regularly&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Do’s and Don’ts
    &lt;ul&gt;
      &lt;li&gt;Do
        &lt;ul&gt;
          &lt;li&gt;Keep your eye on the ball
            &lt;ul&gt;
              &lt;li&gt;Don’t miss your numbers&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;Manage the process&lt;/li&gt;
          &lt;li&gt;Quality your investor&lt;/li&gt;
          &lt;li&gt;Create optionality&lt;/li&gt;
          &lt;li&gt;If there’s an elephant in the room, call it out&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Don’ts
        &lt;ul&gt;
          &lt;li&gt;Get &amp;lt; 6 months of capital&lt;/li&gt;
          &lt;li&gt;Hide the ball on any bad news&lt;/li&gt;
          &lt;li&gt;Be too transparent&lt;/li&gt;
          &lt;li&gt;Let the investor miss a deadline - escrow example&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Fundraising process
    &lt;ul&gt;
      &lt;li&gt;Asking for advice vs. cash
        &lt;ul&gt;
          &lt;li&gt;Who do you know that would like out type of deal&lt;/li&gt;
          &lt;li&gt;What other things would you like to see us complete before we talk again&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Deals that&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Conclusion
    &lt;ul&gt;
      &lt;li&gt;Broad funnels gives you the most choices&lt;/li&gt;
      &lt;li&gt;They will be talking to other investors&lt;/li&gt;
      &lt;li&gt;How you interact in the process will indicate the future&lt;/li&gt;
      &lt;li&gt;What do you need in addition to capitol?
        &lt;ul&gt;
          &lt;li&gt;God to market help&lt;/li&gt;
          &lt;li&gt;Product help&lt;/li&gt;
          &lt;li&gt;Know your blind spots&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Time kills ALL deals&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Tools for pitching
    &lt;ul&gt;
      &lt;li&gt;Forwardable email&lt;/li&gt;
      &lt;li&gt;Executive summary&lt;/li&gt;
      &lt;li&gt;Presentation
        &lt;ul&gt;
          &lt;li&gt;~13 slides&lt;/li&gt;
          &lt;li&gt;More is OK if you have data/traction
Monthly update&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Fri, 06 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/06/business-startup-kic-bootcamp-3/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/06/business-startup-kic-bootcamp-3/</guid>
        
        <category>startup</category>
        
        
        <category>business</category>
        
      </item>
    
      <item>
        <title>KIC TRT Bootcamp Day2</title>
        <description>&lt;h1 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h1&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#how-startups-make-money&quot;&gt;How Startups Make Money&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#pricing-and-metrics-that-matter&quot;&gt;Pricing and Metrics That Matter&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#go-to-market&quot;&gt;Go-To-Market&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#traction-and-product-market-fit&quot;&gt;Traction and Product/Market Fit&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;how-startups-make-money-&quot;&gt;How Startups Make Money &lt;a name=&quot;how-startups-make-money&quot;&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Do you know?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Cost to build&lt;/li&gt;
  &lt;li&gt;Cost to sell&lt;/li&gt;
  &lt;li&gt;Price&lt;/li&gt;
  &lt;li&gt;Profit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How NOT to make money?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Small transaction values&lt;/li&gt;
  &lt;li&gt;Small percentages&lt;/li&gt;
  &lt;li&gt;Not being able to capture value&lt;/li&gt;
  &lt;li&gt;Lumpy sales cycles&lt;/li&gt;
  &lt;li&gt;Long sales cycles&lt;/li&gt;
  &lt;li&gt;Pricing too low could kill your idea before you start&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;marketing---finding-customers&quot;&gt;Marketing - Finding Customers&lt;/h3&gt;
&lt;p&gt;Hire someone who is culturally fit.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Messaging/Value proposition
    &lt;ul&gt;
      &lt;li&gt;Does it resonate with the target customer?&lt;/li&gt;
      &lt;li&gt;Is it repeatable?&lt;/li&gt;
      &lt;li&gt;Don’t make your product the hero of the story - the customers are.&lt;/li&gt;
      &lt;li&gt;Let them remember your story, not that you are smart.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Strategy
    &lt;ul&gt;
      &lt;li&gt;Outbound first&lt;/li&gt;
      &lt;li&gt;Inbound second&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;key-metric-terms&quot;&gt;Key Metric Terms&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Customer_acquisition_cost&quot;&gt;CAC&lt;/a&gt; (Customer Acquisition Cost)&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Customer_lifetime_value&quot;&gt;LTV&lt;/a&gt; (Customer lifetime value):
    &lt;ul&gt;
      &lt;li&gt;How much is the customer worth over time.&lt;/li&gt;
      &lt;li&gt;A prediction of the net profit attributed to the entire future relationship with a customer&lt;/li&gt;
      &lt;li&gt;LTV to CAC ratio: 10 to 1 (B2B) or 5 to 1 (B2C)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Average_revenue_per_user#:~:text=Average%20revenue%20per%20user%20(ARPU,by%20the%20number%20of%20subscribers.)&quot;&gt;ARPU&lt;/a&gt;
(Average Revenue Per User): the total revenue divided by the number of subscribers. Used for subscription services.&lt;/li&gt;
  &lt;li&gt;Churn vs. Retention&lt;/li&gt;
  &lt;li&gt;Time to close&lt;/li&gt;
  &lt;li&gt;Customer engagement: how long do the users use?&lt;/li&gt;
  &lt;li&gt;Time on site&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;marketing-channels&quot;&gt;Marketing Channels&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Paid search&lt;/li&gt;
  &lt;li&gt;Organic search&lt;/li&gt;
  &lt;li&gt;Word of mouth&lt;/li&gt;
  &lt;li&gt;Sales calls&lt;/li&gt;
  &lt;li&gt;Public relations&lt;/li&gt;
  &lt;li&gt;Affiliate&lt;/li&gt;
  &lt;li&gt;Email marketing&lt;/li&gt;
  &lt;li&gt;Social&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;mql--sql&quot;&gt;MQL &amp;amp; SQL&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;MQL (Marketing Qualified Lead)
    &lt;ul&gt;
      &lt;li&gt;Define qualified vs list&lt;/li&gt;
      &lt;li&gt;Suspects&lt;/li&gt;
      &lt;li&gt;Prospects&lt;/li&gt;
      &lt;li&gt;Qualified suspects&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;SQL (Sales Qualified Lead)
    &lt;ul&gt;
      &lt;li&gt;Hand off to sales&lt;/li&gt;
      &lt;li&gt;Identify steps to close&lt;/li&gt;
      &lt;li&gt;Number of calls&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;time-to-close&quot;&gt;Time to Close&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Lead attribution&lt;/li&gt;
  &lt;li&gt;Source time&lt;/li&gt;
  &lt;li&gt;Compressing or expanding&lt;/li&gt;
  &lt;li&gt;Trend by source&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;tracking&quot;&gt;Tracking&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Data allows you to know where to double down
and where to hold back&lt;/li&gt;
  &lt;li&gt;Conversion ratios&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;sales---capturing-value-creation&quot;&gt;Sales - capturing value creation&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;How will they buy?
    &lt;ul&gt;
      &lt;li&gt;Web Direct: place the order to buy on the web&lt;/li&gt;
      &lt;li&gt;Direct: outbound sales, inside/outside&lt;/li&gt;
      &lt;li&gt;Indirect/Channel: fulfills demand, doesn’t generate&lt;/li&gt;
      &lt;li&gt;Retail&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;business-development&quot;&gt;Business Development&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Strategic relationships&lt;/li&gt;
  &lt;li&gt;Who has the list you want&lt;/li&gt;
  &lt;li&gt;How do you get the partnership&lt;/li&gt;
  &lt;li&gt;Strategy
    &lt;ul&gt;
      &lt;li&gt;Who should you get as a partner: how will you build the relationship?&lt;/li&gt;
      &lt;li&gt;What channels&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Tactics
    &lt;ul&gt;
      &lt;li&gt;Messaging/Value Proposition&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Tools
    &lt;ul&gt;
      &lt;li&gt;CRM&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;how-to-monetize-your-startup-revenue-models&quot;&gt;How to monetize your startup: Revenue Models&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Business Models: abstract framework of creating, delivering, and capturing value&lt;/li&gt;
  &lt;li&gt;Revenue Models (part of business model) is the framework of revenue, pricing, who pays&lt;/li&gt;
  &lt;li&gt;Models Lean toward Tech and Product&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;1-fee-for-service&quot;&gt;1. Fee for Service&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Example: Consulting Services company&lt;/li&gt;
  &lt;li&gt;Use: B2B &amp;amp; B2C&lt;/li&gt;
  &lt;li&gt;Key Metrics
    &lt;ul&gt;
      &lt;li&gt;Project Revenue&lt;/li&gt;
      &lt;li&gt;Cost of delivering (usually time)&lt;/li&gt;
      &lt;li&gt;Gross Margin&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Services are hard to scale because they require people to
deliver including restaurant, contractors, etc.&lt;/li&gt;
  &lt;li&gt;Services include markup on cost of goods sold&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;2-commerce&quot;&gt;2. Commerce&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Example: Amazon, AmazonSupply&lt;/li&gt;
  &lt;li&gt;Use: B2C &amp;amp; B2B&lt;/li&gt;
  &lt;li&gt;Key Metrics:
    &lt;ul&gt;
      &lt;li&gt;Wholesale or cost of goods sold&lt;/li&gt;
      &lt;li&gt;Average Margin %&lt;/li&gt;
      &lt;li&gt;Average Basket&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Commerce: physical gooods - wholesale, cost of goods,
retail, average margin, physical good&lt;/li&gt;
  &lt;li&gt;Notes: can mature into marketplace&lt;/li&gt;
&lt;/ul&gt;

&lt;h5 id=&quot;3-subscription&quot;&gt;3. Subscription&lt;/h5&gt;
&lt;ul&gt;
  &lt;li&gt;Example: salesforce, Box, Spotify&lt;/li&gt;
  &lt;li&gt;Use: B2C &amp;amp; B2B&lt;/li&gt;
  &lt;li&gt;Key Metrics
    &lt;ul&gt;
      &lt;li&gt;Average Revenue Per User (ARPU)&lt;/li&gt;
      &lt;li&gt;Conversion ratio - e.g., trial to purchase&lt;/li&gt;
      &lt;li&gt;Churn&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Challenges: MVP won’t be enough to be Kick Ass Product&lt;/li&gt;
  &lt;li&gt;Notes: Highest multiple, forecastable revenue&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;4-metered-service&quot;&gt;4. Metered service&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Example: AWS, Splunk, Azure&lt;/li&gt;
  &lt;li&gt;Use: Favors B2B&lt;/li&gt;
  &lt;li&gt;Key Metrics
    &lt;ul&gt;
      &lt;li&gt;Average Revenue Per User (ARPU)&lt;/li&gt;
      &lt;li&gt;Conversion ratio - e.g., trial to purchase&lt;/li&gt;
      &lt;li&gt;Churn&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Challenges: MVP won’t be enough to be Kick Ass Product&lt;/li&gt;
  &lt;li&gt;Notes: Highest multiple, forecastable revenue&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;5-transaction-feesrental&quot;&gt;5. Transaction Fees/Rental&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Example: 99Designs, Kickstarter, Elance, Chugg&lt;/li&gt;
  &lt;li&gt;Use: B2C &amp;amp; B2B&lt;/li&gt;
  &lt;li&gt;Key Metrics
    &lt;ul&gt;
      &lt;li&gt;Average transaction revenue&lt;/li&gt;
      &lt;li&gt;Fee % per transaction&lt;/li&gt;
      &lt;li&gt;Number of transactions&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Challenges: Margins are small (15%), need efficiency&lt;/li&gt;
  &lt;li&gt;Notes: Don’t start too low&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;6-productize-a-service&quot;&gt;6. Productize a Service&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Your offerings are generally complex and requires services to deploy
    &lt;ul&gt;
      &lt;li&gt;Gross margin on services &amp;gt;35%&lt;/li&gt;
      &lt;li&gt;Product development comes with services&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Use: B2C &amp;amp; B2B&lt;/li&gt;
  &lt;li&gt;Examples: Moz, service company convert to tools&lt;/li&gt;
  &lt;li&gt;Challenges: difficult to make the transition away from services&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;7-combinations&quot;&gt;7. Combinations&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Combinations business models happen for two reasons
    &lt;ul&gt;
      &lt;li&gt;You don’t know which model is right&lt;/li&gt;
      &lt;li&gt;At scale, you can expand revenue sources&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Examples: Hardware sensors + software services to create data analytics&lt;/li&gt;
  &lt;li&gt;Challenges: most require scale or at least traction&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;8-marketplaces&quot;&gt;8. Marketplaces&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Example: eBay, Alibaba&lt;/li&gt;
  &lt;li&gt;Use: B2C &amp;amp; B2B&lt;/li&gt;
  &lt;li&gt;Key Metrics
    &lt;ul&gt;
      &lt;li&gt;Average Transaction Amount&lt;/li&gt;
      &lt;li&gt;Number of Monthly Transactions&lt;/li&gt;
      &lt;li&gt;Commission %&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Challenges: two sided market places require you to start
with one side, value to seller &amp;amp; product market fit (x2)&lt;/li&gt;
  &lt;li&gt;Notes: critical mass or marketplace required&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;9-lead-generation&quot;&gt;9. Lead Generation&lt;/h4&gt;
&lt;h4 id=&quot;10-gaming&quot;&gt;10. Gaming&lt;/h4&gt;
&lt;h4 id=&quot;11-advertisingsearch&quot;&gt;11. Advertising/Search&lt;/h4&gt;
&lt;h4 id=&quot;12-new-media&quot;&gt;12. New Media&lt;/h4&gt;
&lt;h4 id=&quot;13-big-data&quot;&gt;13. Big Data&lt;/h4&gt;
&lt;h4 id=&quot;14-licensing&quot;&gt;14. Licensing&lt;/h4&gt;

&lt;h1 id=&quot;pricing-and-metrics-that-matter-&quot;&gt;Pricing and Metrics That Matter &lt;a name=&quot;pricing-and-metrics-that-matter&quot;&gt;&lt;/a&gt;&lt;/h1&gt;

&lt;h2 id=&quot;pricing&quot;&gt;Pricing&lt;/h2&gt;
&lt;p&gt;Your price will be wrong! Increase it every year and grandfather early customers for a period of time&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Art or science
    &lt;ul&gt;
      &lt;li&gt;Benchmarks: Comparable products&lt;/li&gt;
      &lt;li&gt;Don’t start too low&lt;/li&gt;
      &lt;li&gt;Cost base vs. Value based
        &lt;ul&gt;
          &lt;li&gt;What is the alternate for the “Job to be Done”?&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Remember Freemium is a marketing mechanic, not a price&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Product Pricing
    &lt;ul&gt;
      &lt;li&gt;First Product
        &lt;ul&gt;
          &lt;li&gt;Staged pricing - up or down over time&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Second Product
        &lt;ul&gt;
          &lt;li&gt;Staged pricing - up or down over time&lt;/li&gt;
          &lt;li&gt;Launch timeline based on product road map&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Services?
        &lt;ul&gt;
          &lt;li&gt;Could it improve your sales cycle&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Pricing Plan 30/60/90
    &lt;ul&gt;
      &lt;li&gt;Rationalize your current price&lt;/li&gt;
      &lt;li&gt;Can you move it up&lt;/li&gt;
      &lt;li&gt;Can you bundle with other offers/services?&lt;/li&gt;
      &lt;li&gt;Schedule quarterly pricing committee&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;metrics-that-matter&quot;&gt;Metrics that Matter&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;What to track - best practices
    &lt;ul&gt;
      &lt;li&gt;Marketing metrics - “Marketing Motion”
        &lt;ul&gt;
          &lt;li&gt;Ad Spend&lt;/li&gt;
          &lt;li&gt;Traffic&lt;/li&gt;
          &lt;li&gt;Marketing Qualified Lead (MQLs)&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Sales metrics - “Sales Motion”
        &lt;ul&gt;
          &lt;li&gt;Outbound/Inbound&lt;/li&gt;
          &lt;li&gt;MQL to SQL conversion&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Business Development - partnerships
What’s in it for them?&lt;/li&gt;
      &lt;li&gt;Pricing&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;go-to-market-&quot;&gt;Go-to-market &lt;a name=&quot;go-to-market&quot;&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://drive.google.com/drive/folders/0B4nKgiy2hsFHYl85YWVPbTB3UGs?usp=sharing&quot;&gt;Templates&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;Four Templates
        &lt;ul&gt;
          &lt;li&gt;Marketplace&lt;/li&gt;
          &lt;li&gt;Subscription&lt;/li&gt;
          &lt;li&gt;Transaction Fee (works for commerce)&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Financial Model Heuristics
    &lt;ul&gt;
      &lt;li&gt;$0 - $40 is likely OK&lt;/li&gt;
      &lt;li&gt;Start with assumptions
        &lt;ul&gt;
          &lt;li&gt;Product&lt;/li&gt;
          &lt;li&gt;Services&lt;/li&gt;
          &lt;li&gt;Release timing&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Scale revenue first
        &lt;ul&gt;
          &lt;li&gt;Customer count and timing&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Keep expenses in line as you grow&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;traction-and-productmarket-fit-&quot;&gt;Traction and Product/Market Fit &lt;a name=&quot;traction-and-product-market-fit&quot;&gt;&lt;/a&gt;&lt;/h1&gt;

&lt;h2 id=&quot;product-market-fit&quot;&gt;Product Market Fit&lt;/h2&gt;
&lt;p&gt;Two epochs of every startup&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Pre: the only thing that matters is getting there
    &lt;ul&gt;
      &lt;li&gt;Some revenues&lt;/li&gt;
      &lt;li&gt;Some customers&lt;/li&gt;
      &lt;li&gt;some marketing&lt;/li&gt;
      &lt;li&gt;A lot of hypothesis&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Post: a whole new set of  questions - scale, culture, and people
    &lt;ul&gt;
      &lt;li&gt;Predictable &amp;amp; Scalable Revenue&lt;/li&gt;
      &lt;li&gt;Customer profiles: Cohort analysis&lt;/li&gt;
      &lt;li&gt;Churn&lt;/li&gt;
      &lt;li&gt;Scalable marketing&lt;/li&gt;
      &lt;li&gt;Hypothesis + Data&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;PMF Scorecard
    &lt;ul&gt;
      &lt;li&gt;How would you feel if you could no longer use (product)?
Disappoined?&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Tracking Over Time
    &lt;ul&gt;
      &lt;li&gt;Churn Rate&lt;/li&gt;
      &lt;li&gt;Net Negative Churn&lt;/li&gt;
      &lt;li&gt;NPS vs. CSAT&lt;/li&gt;
      &lt;li&gt;Product usage level
        &lt;ul&gt;
          &lt;li&gt;Frequency&lt;/li&gt;
          &lt;li&gt;Recency&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;Growth rate&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;traction&quot;&gt;Traction&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Predictable/Forecastable Revenue
    &lt;ul&gt;
      &lt;li&gt;De-risking your &lt;time&gt; investment&lt;/time&gt;&lt;/li&gt;
      &lt;li&gt;Predictable revenue moves you from valuations based on trailing 12 to future 12&lt;/li&gt;
      &lt;li&gt;Target customer&lt;/li&gt;
      &lt;li&gt;Sales Cycle&lt;/li&gt;
      &lt;li&gt;Tools trail Strategy and Tactics&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Customer Acquisition Hypothesis
    &lt;ul&gt;
      &lt;li&gt;CAC&lt;/li&gt;
      &lt;li&gt;LTV&lt;/li&gt;
      &lt;li&gt;Time to close sale: how does this change with product/market maturity?&lt;/li&gt;
      &lt;li&gt;Churn/Retention&lt;/li&gt;
      &lt;li&gt;Average Revenue/Measure (user, account, etc.)&lt;/li&gt;
      &lt;li&gt;Word of mouth vs. Virality&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 05 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/05/business-startup-kic-bootcamp-2/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/05/business-startup-kic-bootcamp-2/</guid>
        
        <category>startup</category>
        
        
        <category>business</category>
        
      </item>
    
      <item>
        <title>ML Conference EU 2020</title>
        <description>&lt;h1 id=&quot;overview&quot;&gt;Overview&lt;/h1&gt;
&lt;ul&gt;
  &lt;li&gt;Homepage: &lt;a href=&quot;https://mlconf.eu/&quot;&gt;The Practical Machine Learning Conference&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://mlconf.eu/#schedule&quot;&gt;schedule&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=x16gSOx7KEU&quot;&gt;youtube: Day 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=wM3cYjQ8Pcg&quot;&gt;youtube: Day 2&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;day-1-nov-5-2020&quot;&gt;Day 1 (Nov. 5, 2020)&lt;/h1&gt;
&lt;h2 id=&quot;an-introduction-to-transfer-learning-in-nlp-and-huggingface&quot;&gt;An Introduction to Transfer Learning in NLP and HuggingFace&lt;/h2&gt;
&lt;h3 id=&quot;thomas-wolf&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-thomas-wolf&quot;&gt;Thomas Wolf&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In this talk I’ll start by introducing the recent breakthroughs in NLP that resulted from the combination of Transfer Learning schemes and Transformer architectures.
 The second part of the talk will be dedicated to an introduction of the open-source tools released by HuggingFace, in particular our Transformers, Tokenizers and Datasets libraries and our models.&lt;/p&gt;

&lt;h2 id=&quot;computer-vision-using-opencv&quot;&gt;Computer Vision Using OpenCV&lt;/h2&gt;
&lt;h3 id=&quot;beril-sirmacek&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-beril-sirmacek&quot;&gt;Beril Sirmacek&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;As an AI scientist and a developer, I have been engaged with AI-applications for many years especially focusing on object detection and recognition purposes.
 I love thinking that we can get creative in designing neural networks.
 We can train them supervised, unsupervised, semi or self-supervised, and this gives possibilities to mimic the human brain in a narrow domain.
  However, in vision applications, there are still things where AI is lacking and will be lacking without computer vision knowledge.
   Computer vision has been solving detection and recognition problems for many years. However, in the last decade, it seems like AI is seen as a replacement of computer vision.
    AI can find the optimal model for a specific type of data set and it might achieve generalization better.
     AI can be designed in a way that it can learn life-long which also brings possibilities of creating models which serve better when they are used longer.
      However, an AI vision system will be lacking capabilities without computer vision knowledge.
       First of all, it will require a very big data set to train the model what can be expensive or even not possible.
       On the other hand, computer vision systems can be modeled only by using a hand-drawn template image. Training AI models also requires GPUs.
        Nevertheless, I do not want to encourage everyone to train AI models for solving any simple problem which could be solved easily by computer vision.
         Last but not least, knowing computer vision, machine learning and especially feature engineering methods helps to design hybrid models that might be more robust to adversarial attacks or changing conditions.&lt;/p&gt;

&lt;p&gt;In this lecture, I will briefly introduce how computer vision (especially using the OpenCV library) and machine learning can be used for creating detection and recognition models.
 Some experience with python, jupyter notebook and some machine learning background would be useful to get more benefits from this lecture.&lt;/p&gt;

&lt;h2 id=&quot;the-evolution-revolution&quot;&gt;The Evolution Revolution&lt;/h2&gt;
&lt;h3 id=&quot;robert-plummer&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-robert-plummer&quot;&gt;Robert Plummer&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Elegant and graceful mathematics make a cool textbook cover,
 but the inside of those same books are usually dry cold engineering.
  It’s important to mix the theory of innovation with the excitement of practicality,
   and through the composition of these elements we find innovation.
    In this talk, I’ll show you from an engineering perspective how to explore
     balance, and ultimately bottle machined success.&lt;/p&gt;

&lt;h2 id=&quot;how-to-machine-learn-ify-any-product&quot;&gt;How to Machine Learn-ify any Product&lt;/h2&gt;
&lt;h3 id=&quot;shivani-poddar-facebook&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-shivani-poddar&quot;&gt;Shivani Poddar&lt;/a&gt; Facebook&lt;/h3&gt;
&lt;p&gt;This talk will be a walkthrough of utilizing machine learning to replace a rule based system for consumers.
 We will discuss when is it okay to use ML, how to build these models with intelligent data,
  evaluate these offline and finally how to validate this evaluation to land these models in production systems.
   Furthermore, we will illustrate various self-learning/interactive-learning strategies
    that can be used for production systems to automate how models teach themselves to become better.&lt;/p&gt;

&lt;h2 id=&quot;teaching-ml-and-ai-to-coders&quot;&gt;Teaching ML and AI to Coders&lt;/h2&gt;
&lt;h3 id=&quot;laurence-moroney-google&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-laurence-moroney&quot;&gt;Laurence Moroney&lt;/a&gt; Google&lt;/h3&gt;
&lt;p&gt;Often it’s thought that to be able to succeed with Machine Learning and Deep Learning,
 as an onramp to Artificial Intelligence, that you need a deep background in mathematics and calculus,
  as well as some form of PhD. But you don’t.
   With modern APIs like TensorFlow, much of the complexity is abstracted away in pre-built libraries,
    so you can focus on learning.
     In this session, Laurence Moroney, from Google, will explain
      how he has used this to create courses with hundreds of thousands of students, and from there,
       how a certificate program was created.&lt;/p&gt;

&lt;h4 id=&quot;notes&quot;&gt;Notes&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;30 million developers&lt;/li&gt;
  &lt;li&gt;300,000 AI practitioners&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The goal is to increase it by a factor 10.
Train millions of developers to reach billions of people.
The mission: Make AI Easy&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Book on Amazon: &lt;a href=&quot;https://amzn.to/2FRnm9Y&quot;&gt;AI and Machine Learning for Coders&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;tensorflowjs-101-ml-in-the-browser-and-beyond&quot;&gt;TensorFlow.js 101: ML in the Browser and Beyond&lt;/h2&gt;
&lt;h3 id=&quot;jason-mayes&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-jason-mayes&quot;&gt;Jason Mayes&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Discover how to embrace machine learning in JavaScript using TensorFlow.js in the browser and beyond in this speedy talk.
 Get inspired through a whole bunch of creative prototypes that push the boundaries of what is possible in the modern web browser
  (things have come a long way) and then take your own first steps with machine learning in minutes.
   By the end of the talk everyone will understand how to recognize an object of their choice
    which could then be used in any creative way you can imagine.
     Familiarity with JavaScript is assumed, but no background in machine learning is required.
      Come take your first steps with TensorFlow.js!&lt;/p&gt;

&lt;h1 id=&quot;day-2-nov-6th-2020&quot;&gt;Day 2 (Nov. 6th, 2020)&lt;/h1&gt;
&lt;h2 id=&quot;boost-productivity-with-keras-ecosystem&quot;&gt;Boost Productivity with Keras Ecosystem&lt;/h2&gt;
&lt;h3 id=&quot;haifeng-jin-keras-team-at-google&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-haifeng-jin&quot;&gt;Haifeng Jin&lt;/a&gt; Keras Team at Google&lt;/h3&gt;
&lt;p&gt;TensorFlow has built a solid foundation for various machine learning applications,
 on top of which the Keras ecosystem can really boost the productivity of the developers in building machine learning solutions.
  Keras has a simple and arbitrarily flexible API for building and training models.
   However, we still need a lot of manual work to tune the hyperparameters.
    Fortunately, with Keras Tuner, we can automate the hyperparameter tuning process with minor modifications to the code for building and training the models.
     To further boost the productivity, we introduce AutoKeras, which fully automates the model building, training, and hyperparameter tuning process.
      It dramatically reduces the amount of prior knowledge needed of using machine learning for some common tasks. All you need is to define the task and to provide the training data.&lt;/p&gt;

&lt;h2 id=&quot;never-have-an-unmaintainable-jupyter-notebook-again&quot;&gt;Never Have an Unmaintainable Jupyter Notebook Again!&lt;/h2&gt;
&lt;h3 id=&quot;marco-gorelli&quot;&gt;&lt;a href=&quot;https://mlconf.eu/#person-marco-gorelli&quot;&gt;Marco Gorelli&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Data visualisation is a fundamental part of Data Science.
 The talk will start with a practical demonstration (using pandas, scikit-learn, and matplotlib)
  of how relying on summary statistics and predictions alone can leave you blind to the true nature of your datasets.
   I will make the point that visualisations are crucial in every step of the Data Science process
    and therefore that Jupyter Notebooks definitely do belong in Data Science.
     We will then look at how maintainability is a real challenge for Jupyter Notebooks,
      especially when trying to keep them under version control with git.
       Although there exists a plethora of code quality tools for Python scripts (flake8, black, mypy, etc.),
        most of them don’t work on Jupyter Notebooks. To this end I will present nbQA,
         which allows any standard Python code quality tool to be run on a Jupyter Notebook.
          Finally, I will demonstrate how to use it within a workflow which lets practitioners keep the interactivity of their Jupyter Notebooks without having to sacrifice their maintainability.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/MarcoGorelli/mlconfeu-2020-talk&quot;&gt;github&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;nbdime&lt;/li&gt;
  &lt;li&gt;nbQA -&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 05 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/ai/2020/11/05/ai-ml-conf-eu/</link>
        <guid isPermaLink="true">https://changsin.github.io/ai/2020/11/05/ai-ml-conf-eu/</guid>
        
        <category>event</category>
        
        
        <category>ai</category>
        
      </item>
    
      <item>
        <title>Django useful info</title>
        <description>&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://pypi.org/project/django-status/&quot;&gt;Django status&lt;/a&gt;:
 Application that provides an API to check the status of some parts and some utilities like ping.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 04 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/coding/2020/11/04/coding-django/</link>
        <guid isPermaLink="true">https://changsin.github.io/coding/2020/11/04/coding-django/</guid>
        
        <category>django</category>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Startup Resources</title>
        <description>&lt;h2 id=&quot;how-to-start-a-startup&quot;&gt;How to start a startup&lt;/h2&gt;
&lt;p&gt;Sam Altman, President of Y Combinator, and Dustin Moskovitz, Cofounder of Facebook, Asana,
 and Good Ventures, kick off the How to Start a Startup Course.
 Sam covers the first 2 of the 4 Key Areas: Ideas, Products, Teams and Execution;
  and Dustin discusses Why to Start a Startup.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCxIJaCMEptJjxmmQgGFsnCg&quot;&gt;How to Start a Startup&lt;/a&gt;:
youtube channel. Stanford lectures.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://genius.com/Sam-altman-lecture-1-how-to-start-a-startup-annotated&quot;&gt;lecture trascripts&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Slides
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/uio0cep4a2454ar/Lecture_1_Sam.pdf?dl=0&quot;&gt;Lecture 1 Sam&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.dropbox.com/s/l4lnfilivmndmt4/Lecture_1_Dustin.pdf?dl=0&quot;&gt;Lecture 1 Dustin&lt;/a&gt;
        &lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;People have this vision of being the CEO of a company they started and being on top of the pyramid...
What it's really like: everyone else is your boss -- all of your employees, customers, partners, users, media are you boss.
...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;dave-parker&quot;&gt;Dave Parker&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.dkparker.com&quot;&gt;dkparker.com&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.dkparker.com/top-startup-book-list-and-top-10-classic-business-books/&quot;&gt;Top books for startups&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.dkparker.com/kic-wtia/&quot;&gt;KIC WTIA&lt;/a&gt; presentation slides&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.dkparker.com/tam-sam-som-and-lam-whats-your-launch-addressable-market/&quot;&gt;TAM, SAM, SOM, and LAM&lt;/a&gt;:
What’s your Launch Addressable Market?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;coursera-courses&quot;&gt;Coursera courses&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Coursera &lt;a href=&quot;https://www.coursera.org/specializations/startup-entrepreneurship#courses&quot;&gt;Startup Entrepreneurship&lt;/a&gt;:
Technion Israel Institute of Technology&lt;/li&gt;
  &lt;li&gt;Coursera &lt;a href=&quot;https://www.coursera.org/learn/tech-startup&quot;&gt;Creating and Developing A Tech Startup&lt;/a&gt;:
offered by École Polytechnique, HEC Paris&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;presentations&quot;&gt;Presentations&lt;/h2&gt;

&lt;h3 id=&quot;the-single-biggest-reason-why-start-ups-succeed--bill-gross&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=bNpx7gpSqbY&quot;&gt;The single biggest reason why start-ups succeed | Bill Gross&lt;/a&gt;:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Founder of IdeaLab
    &lt;ul&gt;
      &lt;li&gt;Idea: ideas are not everything&lt;/li&gt;
      &lt;li&gt;Team: execution - adaptability - the customer is the true reality&lt;/li&gt;
      &lt;li&gt;Business model&lt;/li&gt;
      &lt;li&gt;Funding&lt;/li&gt;
      &lt;li&gt;Timing&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Top 5 factors in success
    &lt;ol&gt;
      &lt;li&gt;Timing (42%): AirBnB and Uber came right after the great recession when people needed extra money
to overcome their initial rejection of the ideas. CitySearch belongs to the same category when
people were looking for cost-effective ways to build web sites. On the other hand, Z.com was
an online entertainment company and we had high hopes. But broadband penetration was too low
in 1990-2000. A couple of years later when broadband was available, youtube came out perfectly timed and
had a great success.&lt;/li&gt;
      &lt;li&gt;Team/Execution (32%)&lt;/li&gt;
      &lt;li&gt;Idea “Truth” Outlier (28%)&lt;/li&gt;
      &lt;li&gt;Business Model (24%)&lt;/li&gt;
      &lt;li&gt;Funding (14%)&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Everybody has a plan until they get punched in the face.
  -- Mike Tyson
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Wed, 04 Nov 2020 00:00:00 +0000</pubDate>
        <link>https://changsin.github.io/business/2020/11/04/business-startup-resources/</link>
        <guid isPermaLink="true">https://changsin.github.io/business/2020/11/04/business-startup-resources/</guid>
        
        <category>startup</category>
        
        
        <category>business</category>
        
      </item>
    
  </channel>
</rss>
