
Explore how deep learning boosted natural language processing, covering word embeddings like word2vec and glove, and neural architectures from rnn to recursive models for text tasks.
Explore how word analogies arise from word embeddings and vectors, and learn to compute analogies using vector arithmetic and cosine distance.
Explore how tf-idf derived word vectors are reduced with t-SNE and plotted as a scatterplot to test semantic analogies, highlighting the limitations of tf-idf for word relationships.
Explore how word embeddings initialize language models using pretrained vectors from word2vec and glove. Experiment with freezing embeddings or keeping them trainable to see effects on rnn performance.
Extend a neural bigram model with logistic regression using one-hot word encoding, train with gradient descent to minimize cross-entropy, and compare weight matrices with the probability matrix.
Examine how a bigram neural network models the next word as a language model and builds word embeddings with two V-by-V matrices.
Explore negative sampling as a scalable alternative to softmax in natural language processing, using binary cross entropy, sigmoid outputs, and context word sampling within skip gram and cbow frameworks.
Explore GloVe, global vectors for word representation, and learn how matrix factorization from recommender systems underpins word vectors for NLP, offering simpler training with fewer hyperparameters.
Apply regularization to a matrix factorization model using the Frobenius norm, deriving update rules for W, U, and bias terms to prevent overfitting.
Try new word analogies beyond countries and cities to test your natural language processing model, and tune hyperparameters like learning rate, momentum, embedding dimensionality, and vocabulary size.
Explore unifying word embedding methods by framing Word2Vec and glove as matrix factorization, using pointwise mutual information and negative sampling to derive a PMI-based objective.
Explore how logistic regression, hidden Markov models, and recurrent neural networks tackle parts of speech tagging, highlighting context, long term dependencies, and the role of LSTM/GRU units.
Explore how a recurrent neural network in Theano solves the parts-of-speech tagging problem, using word embeddings, softmax outputs, and F1 score evaluation.
Develop a named entity recognition model with an RNN in Theano for natural language processing using Python and deep learning, and evaluate performance with train and test data.
Represent sentences as trees using parts of speech to form noun phrases and verb phrases, then apply sentiment analysis and negation handling, paving the way toward recursive neural networks.
Explore the architecture of recursive neural networks for binary and multi-child trees, detailing how shared weights connect to parse tree nodes, compute hidden states, and produce outputs with softmax.
Transform parse trees into sequences to convert recursive neural networks into recurrent neural networks, using three arrays (parents, relations, and words) and post-order traversal to build a scalable tree-to-sequence pipeline.
Explore a practical recursive neural network implemented in TensorFlow, using post-order traversal, tree-based graphs, and a custom training loop with Savir to save and load weights.
Discover Theano basics, including symbolic variables and tensors of various shapes, and build functions. Learn automatic gradients with shared variables and a simple training loop to minimize a cost.
Explore TensorFlow basics, including placeholders, variables, sessions, and simple matrix multiplication, then minimize a cost function with gradient descent using a learning rate of 0.3.
Build a TensorFlow neural network with a second hidden layer of 100 units, configure placeholders and variables, and train using momentum-based optimizers while monitoring cost and potential overfitting.
Ever wondered how AI technologies like OpenAI ChatGPT, GPT-4, DALL-E, Midjourney, and Stable Diffusion really work? In this course, you will learn the foundations of these groundbreaking applications.
In this course we are going to look at NLP (natural language processing) with deep learning.
Previously, you learned about some of the basics, like how many NLP problems are just regular machine learning and data science problems in disguise, and simple, practical methods like bag-of-words and term-document matrices.
These allowed us to do some pretty cool things, like detect spam emails, write poetry, spin articles, and group together similar words.
In this course I’m going to show you how to do even more awesome things. We’ll learn not just 1, but 4 new architectures in this course.
First up is word2vec.
In this course, I’m going to show you exactly how word2vec works, from theory to implementation, and you’ll see that it’s merely the application of skills you already know.
Word2vec is interesting because it magically maps words to a vector space where you can find analogies, like:
king - man = queen - woman
France - Paris = England - London
December - Novemeber = July - June
For those beginners who find algorithms tough and just want to use a library, we will demonstrate the use of the Gensim library to obtain pre-trained word vectors, compute similarities and analogies, and apply those word vectors to build text classifiers.
We are also going to look at the GloVe method, which also finds word vectors, but uses a technique called matrix factorization, which is a popular algorithm for recommender systems.
Amazingly, the word vectors produced by GLoVe are just as good as the ones produced by word2vec, and it’s way easier to train.
We will also look at some classical NLP problems, like parts-of-speech tagging and named entity recognition, and use recurrent neural networks to solve them. You’ll see that just about any problem can be solved using neural networks, but you’ll also learn the dangers of having too much complexity.
Lastly, you’ll learn about recursive neural networks, which finally help us solve the problem of negation in sentiment analysis. Recursive neural networks exploit the fact that sentences have a tree structure, and we can finally get away from naively using bag-of-words.
All of the materials required for this course can be downloaded and installed for FREE. We will do most of our work in Numpy, Matplotlib, and Theano. I am always available to answer your questions and help you along your data science journey.
This course focuses on "how to build and understand", not just "how to use". Anyone can learn to use an API in 15 minutes after reading some documentation. It's not about "remembering facts", it's about "seeing for yourself" via experimentation. It will teach you how to visualize what's happening in the model internally. If you want more than just a superficial look at machine learning models, this course is for you.
See you in class!
"If you can't implement it, you don't understand it"
Or as the great physicist Richard Feynman said: "What I cannot create, I do not understand".
My courses are the ONLY courses where you will learn how to implement machine learning algorithms from scratch
Other courses will teach you how to plug in your data into a library, but do you really need help with 3 lines of code?
After doing the same thing with 10 datasets, you realize you didn't learn 10 things. You learned 1 thing, and just repeated the same 3 lines of code 10 times...
Suggested Prerequisites:
calculus (taking derivatives)
matrix addition, multiplication
probability (conditional and joint distributions)
Python coding: if/else, loops, lists, dicts, sets
Numpy coding: matrix and vector operations, loading a CSV file
neural networks and backpropagation, be able to derive and code gradient descent algorithms on your own
Can write a feedforward neural network in Theano or TensorFlow
Can write a recurrent neural network / LSTM / GRU in Theano or TensorFlow from basic primitives, especially the scan function
Helpful to have experience with tree algorithms
WHAT ORDER SHOULD I TAKE YOUR COURSES IN?:
Check out the lecture "Machine Learning and AI Prerequisite Roadmap" (available in the FAQ of any of my courses, including the free Numpy course)
UNIQUE FEATURES
Every line of code explained in detail - email me any time if you disagree
No wasted time "typing" on the keyboard like other courses - let's be honest, nobody can really write code worth learning about in just 20 minutes from scratch
Not afraid of university-level math - get important details about algorithms that other courses leave out