University |
Singapore University of Social Science (SUSS) |

Subject |
FIN313: Machine Learning and AI for FinTech Assignment |

^{th}Mar 2024

# FIN313: Machine Learning and AI for FinTech Assignment, SUSS, Singapore: Suppose you are a data scientist in IMDB and would like to develop a machine-learning model to do the sentiment

**Question 1**

Suppose you are a data scientist in IMDB and would like to develop a machine-learning model to do the sentiment analysis of movie reviews. Your goal is to classify the movie viewers’ reviews as either positive or negative. In this question, you would like to use the IMDB database, which contains 50,000 records of Internet movie reviews, as your dataset. You are to use the following code to download the dataset:

By default, half of the data are saved as the train_data while the remaining half are saved as the test_data. The targeted response variable is the label which you are going to predict. Being a positive review is labelled as 1 and being a negative review is labelled as 0.

##### Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers

**(a)**(Python code) Suppose you would like to use a neural network method to build the machine learning model. The designed neural network architecture is summarised as follows:

• Input layer size: 5,000

• First hidden layer size: 32, followed by a ‘relu’ activation function.

• Second hidden layer size: 16, followed by a ‘relu’ activation function.

• Third hidden layer size: 8, followed by a ‘relu’ activation function.

• Output layer size: 1, followed by a ‘sigmoid’ activation function.

• Optimizer: ‘rmsprop’, loss: ‘binary_crossentropy’, metrics: ‘accuracy’

• Batch size: 512, epochs=10

Use the keras library to implement the above neural network.

**(b)**Report the training losses, testing losses, training accuracy, and testing accuracy of the above model (results are rounded to three decimal points). Discuss your findings about the results.

**(c)** (Python code) Find the optimal value of “epochs” in your neural network model. [Remark: You are encouraged to use plots to improve the clarity of your explanation.]

**(d) **(Python code) Propose at least one way to improve your model’s performance. You need to report the accuracy of your improved model on the testing dataset, take a screenshot of your code, and discuss how the chosen method can improve the model’s performance.

**(e)** Suppose a confusion matrix with 100 samples is used to evaluate the performance of the machine learning model. The results are summarized as follows

**(f)** (Python code) You realize that the logistic regression model is also commonly used for a classification task. Implement the coding of the logistic regression model by using sklearn.linear_model library, report its testing accuracy and compare the suitability of logistic regression and the above neural network for this task.

##### Hire a Professional Essay & Assignment Writer for completing your Academic Assessments

Calling all Singaporean students! Struggling with your **FIN313 **Machine Learning and AI for FinTech Assignment? Don't fret – our team specializes in TMA submissions and offers top-notch **Do My Assignment** services tailored to your needs. With our expertise in **assignment help Singapore**, navigating through complex topics like machine learning and AI becomes a breeze. Let us handle the stress while you focus on success. Pay our experts today for the support you deserve.

Tags:-

- BUS353: Project management Course Work, SUSS, Singapore: Mr Tam, would like the SMA Project to start on 01 August 2023 and aim for completion
- BUS353: Project management Course Work, SUSS, Singapore: Kopi Shop Pte Ltd (shall be known as “Kopi Shop”) has been one of a few food court operators
- PC4274A: Mathematical Methods in Physics III Assignment, NUS, Singapore: The Lagrangian for a particle with charge q and mass m in an electromagnetic field described
- PC4274A: Mathematical Methods in Physics III Assignment, NUS, Singapore: Determine the stationary functions u(x) and v(x) for the functional
- PC4274A: Mathematical Methods in Physics III Assignment, NUS, Singapore: The Schwarzschild metric for the static field of a non-rotating spherically symmetric
- SST102: Human Factors and Systems Design, SUSS, SIngapore: In implementing human factors solutions, environmental design should be considered last
- OMGT2229: Strategic Supply Chain Assignment, RMIT, Singapore: Draw a decision tree for each option reflecting the uncertainties over the next two periods
- OMGT2229: Strategic Supply Chain Assignment, RMIT, Singapore: CosyHome is a small home furniture store selling affordable trendy furniture for young people
- OMGT2229: Strategic Supply Chain Assignment, RMIT, Singapore: What is the economic order quantity (EOQ) of 20-roll toilet paper packs per lot for Caltex if there is no volume discount?
- OMGT2229: Strategic Supply Chain Assignment, RMIT, Singapore: Demand forecasting for 5 kg bag ice and inventory management of 20-roll pack of toilet paper at Caltex

*UP TO*
**15 %**
DISCOUNT