DATA 255 Deep Learning Technologies – Homework -4 Solved

$24.99 $18.99

Problem 1: Use the IMDB Movie review dataset: (1+5 pts) Build the sentiment analysis model using Text preprocessing steps: Tokenization, Stopwords removing, HTML removing, Convert to lower case, Lemmatization/stemming Perform combination of different word embeddings (e.g., Word2Vec, Glove, and so on) and sequential models (e.g., RNN, LSTM, GRU, and so on). Provide a table that…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Problem 1: Use the IMDB Movie review dataset:

  1. (1+5 pts) Build the sentiment analysis model using

    1. Text preprocessing steps: Tokenization, Stopwords removing, HTML removing, Convert to lower case, Lemmatization/stemming

    1. Perform combination of different word embeddings (e.g., Word2Vec, Glove, and so on) and sequential models (e.g., RNN, LSTM, GRU, and so on). Provide a table that include results of all the combinations. Minimum expected accuracy is 95% from at least one of the combinations.

  1. (3+2 = 5 pts) First part of this question, use Keras embedding layer (+ any sequential models) for sentiment analysis. As a byproduct, you will achieve word embeddings for all the words used to train the model. In the second step, use cosine similarity to find the first five most similar words to “movie”.

Problem 2: Use the mobydick chapter four dataset for text generation. In the process of text generation, you must develop a multiclass classification sequential model (e.g., GRU/LSTM/RNN, and so on). Your model should achieve a minimum accuracy of 20%. You should use minimum 25 tokens as X features and the immediate next token as y feature. The expectation of the generated text is that: it should not be all identical words and number of generated texts should be minimum of 20.

  1. (1 pts) Perform Text Preprocessing

    1. Tokenization

    1. Convert to lower case

    1. Expand contraction

    1. Remove punctuation

    1. Lemmatization/stemming

  1. (4 pts) Text generation model should be developed using keras word embeddings.

  1. (4 pts) Transfer Learning: Text generation model should be developed using word2vec word embeddings

Useful link-

Data Download: https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews

Gensim- https://radimrehurek.com/gensim/models/word2vec.html

You are required to submit:

  1. An MS/PDF/Scanned document:

    1. Include all the steps of your calculations.

    1. Attach screenshots of the code output.

    1. Include the summary of the model

    1. Include a Table – Mention all the hyperparameters you selected: activation function in hidden layer and output layer, weight initializer, number of hidden layers, neurons in hidden layers, loss function, optimizer, number of epochs, batch size, learning rate, evaluation metric

  1. Source code:

    1. Python (Jupyter Notebook)

    1. Ensure it is well-organized with comments and proper indentation.

  • Failure to submit the source code will result in a deduction of 5 points.

  • Format your filenames as follows: “your_last_name_HW1.pdf” for the document and “your_last_name_HW1_source_code.ipynb” for the source code.

  • Before submitting the source code, please double-check that it runs without any errors.

  • Must submit the files separately.

  • Do not compress into a zip file.

  • HW submitted more than 24 hours late will not be accepted for credit.

DATA 255 Deep Learning Technologies – Homework -4 Solved
$24.99 $18.99