From the course: Advanced NLP with Python for Machine Learning
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Build a model on TF-IDF vectors - Python Tutorial
From the course: Advanced NLP with Python for Machine Learning
Build a model on TF-IDF vectors
- [Instructor] Whenever you're building a machine learning model, it's important to start with some kind of baseline, a model that's not too complicated, they will serve as a benchmark to see if you're more complex models are actually improving the performance. We should always try and stick to outcomes razor. We should prefer the simpler model, unless the added complexity is worth the improvement in performance. In this lesson, we're going to fit our baseline model, which is a RandomForestModel built on top of TF-IDF vectors. This baseline will give us a starting point to understand how much there's to gain with more complex methods like Word2vec, Doc2vec, and recurrent neural networks. We already fit a basic model on TF-IDF vectors in the review chapter. So I'm going to go through this quickly. Feel free to revisit the review chapter, if you want more detail on any of the steps here. Let's start by reading in our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Prep the data for modeling2m 52s
-
(Locked)
Build a model on TF-IDF vectors6m 34s
-
(Locked)
Build a model on word2vec embeddings6m 41s
-
(Locked)
Build a model on doc2vec embeddings3m 59s
-
(Locked)
Build an RNN model5m 11s
-
(Locked)
Compare all methods using key performance metrics4m 16s
-
(Locked)
Key takeaways for advanced NLP modeling techniques3m 6s
-
(Locked)
-