Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started