Question: Python code implementation Build the following RNN architecture to classify names based on their language (Dataset). (This dataset includes the names of people in 18

Python code implementation
Build the following RNN architecture to classify names based on their language (Dataset). (This dataset includes the names of people in 18 different languages) Do the preprocessing on the dataset and perform the following experiments - 1. Split the data into train, val, and test (80:10:10). [2] 2. Plot the epoch vs. loss curve for training and validation data. Save your best model after appropriate hyperparameter tuning. [5] 3. Obtain a Confusion Matrix on validation data for your best model. [2] 4. Add three more linear layers to our current RNN architecture and perform 2 \& 3 again.[4] 5. Report test accuracy for both the above architectures. [2] 6. Build a stacked RNN (2 RNN blocks) model and do appropriate hyperparameter tuning. At last, perform inference on the following words and print their language of origin. [5] Build the following RNN architecture to classify names based on their language (Dataset). (This dataset includes the names of people in 18 different languages) Do the preprocessing on the dataset and perform the following experiments - 1. Split the data into train, val, and test (80:10:10). [2] 2. Plot the epoch vs. loss curve for training and validation data. Save your best model after appropriate hyperparameter tuning. [5] 3. Obtain a Confusion Matrix on validation data for your best model. [2] 4. Add three more linear layers to our current RNN architecture and perform 2 \& 3 again.[4] 5. Report test accuracy for both the above architectures. [2] 6. Build a stacked RNN (2 RNN blocks) model and do appropriate hyperparameter tuning. At last, perform inference on the following words and print their language of origin. [5]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
