From the course: Deep Learning with Python and Keras: Build a Model for Sentiment Analysis
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Training a DNN using embeddings
From the course: Deep Learning with Python and Keras: Build a Model for Sentiment Analysis
Training a DNN using embeddings
- [Narrator] We now have our vectorized layer set up to produce integer sequences to represent our input text. This is what we'll feed into the embeddings layer of our neural network in order to train embeddings to represent our input text. But first, I'm going to set up a few additional configuration options for my neural network training. This is the callback_list. Callbacks and Keras are a set of functions that can be applied at various stages during the training of a neural network model. Callbacks can be used to customize and monitor the training process by specifying actions that can be taken when specific events or conditions occur during training. I've specified two callbacks here. The first is EarlyStopping. This is the first callback in my list. The EarlyStopping callback stops training when the validation loss is no longer improving, and it saves the best model obtained during training. The monitor argument in…
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)
Feed forward neural networks4m 31s
-
(Locked)
Splitting data into training test and validation sets5m 3s
-
(Locked)
Representing text using count vectorization8m 32s
-
(Locked)
Configuring the dense neural network6m 11s
-
(Locked)
Training and evaluating the DNN3m 12s
-
(Locked)
Configuring the count vectorizer as a model layer2m 52s
-
(Locked)
Representing text using TF-IDF vectorization5m 9s
-
(Locked)
Training and evaluating the model3m 19s
-
(Locked)
Representing text using integer sequences3m 58s
-
(Locked)
Training a DNN using embeddings7m 21s
-
(Locked)
-
-