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

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. As the input data may have different lengths, they should be pre-processed using the one-hot encoding so that it can be easily processed by the program. The following is the suggested code: Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers Get A Free Quote (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. Write My Assignment Hire a Professional Essay & Assignment Writer for completing your Academic Assessments Native Singapore Writers Team 100% Plagiarism-Free Essay Highest Satisfaction Rate Free Revision On-Time Delivery

QUALITY: 100% ORIGINAL PAPER NO ChatGPT.NO PLAGIARISMCUSTOM PAPER

Best Custom Essay Writing Services

Looking for unparalleled custom paper writing services? Our team of experienced professionals at AcademicWritersBay.com is here to provide you with top-notch assistance that caters to your unique needs.

We understand the importance of producing original, high-quality papers that reflect your personal voice and meet the rigorous standards of academia. That’s why we assure you that our work is completely plagiarism-free—we craft bespoke solutions tailored exclusively for you.

Why Choose AcademicWritersBay.com?

  • Our papers are 100% original, custom-written from scratch.
  • We’re here to support you around the clock, any day of the year.
  • You’ll find our prices competitive and reasonable.
  • We handle papers across all subjects, regardless of urgency or difficulty.
  • Need a paper urgently? We can deliver within 6 hours!
  • Relax with our on-time delivery commitment.
  • We offer money-back and privacy guarantees to ensure your satisfaction and confidentiality.
  • Benefit from unlimited amendments upon request to get the paper you envisioned.
  • We pledge our dedication to meeting your expectations and achieving the grade you deserve.

Our Process: Getting started with us is as simple as can be. Here’s how to do it:

  • Click on the “Place Your Order” tab at the top or the “Order Now” button at the bottom. You’ll be directed to our order form.
  • Provide the specifics of your paper in the “PAPER DETAILS” section.
  • Select your academic level, the deadline, and the required number of pages.
  • Click on “CREATE ACCOUNT & SIGN IN” to provide your registration details, then “PROCEED TO CHECKOUT.”
  • Follow the simple payment instructions and soon, our writers will be hard at work on your paper.

AcademicWritersBay.com is dedicated to expediting the writing process without compromising on quality. Our roster of writers boasts individuals with advanced degrees—Masters and PhDs—in a myriad of disciplines, ensuring that no matter the complexity or field of your assignment, we have the expertise to tackle it with finesse. Our quick turnover doesn’t mean rushed work; it means efficiency and priority handling, ensuring your deadlines are met with the excellence your academics demand.

ORDER NOW and experience the difference with AcademicWritersBay.com, where excellence meets timely delivery.

NO PLAGIARISM
error: Content is protected !!