SlideShare a Scribd company logo
1 of 1
Download to read offline
In the Python file, you will be creating a neural network to predict the price of a stock. Part of the
program is already implemented, your goal is to set up the model, train the model on the training
data set, then finally predict the values from the testing data set. You should create a Sequential
model with 5 layers. Your model should use 2 LSTM layers, and after each use a Dropout layer
with a rate of 0.2. The first LSTM layer should have input_shape as a parameter along with units
set to 4. The final layer should be a Dense layer with units set to 1. Once the model is set up, you
should compile it with a mean_squared_error loss and the optimizer set to adam. When you fit the
training dataset, make sure to set the following values: epochs=5, batch_size=16, verbose=0
Finally, you should run the predict function on the x_test dataset and print the last column of the
array along with the model summary.

More Related Content

Similar to In the Python file you will be creating a neural network to.pdf

Article link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxArticle link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxfredharris32
 
House price prediction
House price predictionHouse price prediction
House price predictionSabahBegum
 
Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117Ganesan Narayanasamy
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning materialArthyR3
 
interfacing matlab with embedded systems
interfacing matlab with embedded systemsinterfacing matlab with embedded systems
interfacing matlab with embedded systemsRaghav Shetty
 
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdf
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdfDeclaring a PointerTo define a pointer, use an asterisk, (), in t.pdf
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdfmalavshah9013
 
Anything but simple Mathematica
Anything but simple MathematicaAnything but simple Mathematica
Anything but simple MathematicaSergeiPronkevich
 
Automated Machine Learning (Auto ML)
Automated Machine Learning (Auto ML)Automated Machine Learning (Auto ML)
Automated Machine Learning (Auto ML)Hayim Makabee
 
DLT UNIT-3.docx
DLT  UNIT-3.docxDLT  UNIT-3.docx
DLT UNIT-3.docx0567Padma
 
modelling and simulation of second order mechanical system
modelling and simulation of second order mechanical systemmodelling and simulation of second order mechanical system
modelling and simulation of second order mechanical systemsanmudo
 
Reaction StatisticsBackgroundWhen collecting experimental data f.pdf
Reaction StatisticsBackgroundWhen collecting experimental data f.pdfReaction StatisticsBackgroundWhen collecting experimental data f.pdf
Reaction StatisticsBackgroundWhen collecting experimental data f.pdffashionbigchennai
 
Stackpirt20170222
Stackpirt20170222Stackpirt20170222
Stackpirt20170222Sharon Liu
 

Similar to In the Python file you will be creating a neural network to.pdf (19)

Article link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docxArticle link httpiveybusinessjournal.compublicationmanaging-.docx
Article link httpiveybusinessjournal.compublicationmanaging-.docx
 
House price prediction
House price predictionHouse price prediction
House price prediction
 
projectreport
projectreportprojectreport
projectreport
 
Lab5
Lab5Lab5
Lab5
 
Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117Power ai tensorflowworkloadtutorial-20171117
Power ai tensorflowworkloadtutorial-20171117
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning material
 
Mat-lab image processing tatorial
Mat-lab  image processing tatorialMat-lab  image processing tatorial
Mat-lab image processing tatorial
 
interfacing matlab with embedded systems
interfacing matlab with embedded systemsinterfacing matlab with embedded systems
interfacing matlab with embedded systems
 
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdf
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdfDeclaring a PointerTo define a pointer, use an asterisk, (), in t.pdf
Declaring a PointerTo define a pointer, use an asterisk, (), in t.pdf
 
Introductio2.docx
Introductio2.docxIntroductio2.docx
Introductio2.docx
 
Anything but simple Mathematica
Anything but simple MathematicaAnything but simple Mathematica
Anything but simple Mathematica
 
Automated Machine Learning (Auto ML)
Automated Machine Learning (Auto ML)Automated Machine Learning (Auto ML)
Automated Machine Learning (Auto ML)
 
DLT UNIT-3.docx
DLT  UNIT-3.docxDLT  UNIT-3.docx
DLT UNIT-3.docx
 
modelling and simulation of second order mechanical system
modelling and simulation of second order mechanical systemmodelling and simulation of second order mechanical system
modelling and simulation of second order mechanical system
 
Reaction StatisticsBackgroundWhen collecting experimental data f.pdf
Reaction StatisticsBackgroundWhen collecting experimental data f.pdfReaction StatisticsBackgroundWhen collecting experimental data f.pdf
Reaction StatisticsBackgroundWhen collecting experimental data f.pdf
 
Maxbox starter
Maxbox starterMaxbox starter
Maxbox starter
 
Ecet 370 week 1 lab
Ecet 370 week 1 labEcet 370 week 1 lab
Ecet 370 week 1 lab
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
 
Stackpirt20170222
Stackpirt20170222Stackpirt20170222
Stackpirt20170222
 

More from spsvirdi

In what ways did the evolution of an exoskeleton help insect.pdf
In what ways did the evolution of an exoskeleton help insect.pdfIn what ways did the evolution of an exoskeleton help insect.pdf
In what ways did the evolution of an exoskeleton help insect.pdfspsvirdi
 
In which external environments do changes usually occur mo.pdf
In which external environments do changes usually occur mo.pdfIn which external environments do changes usually occur mo.pdf
In which external environments do changes usually occur mo.pdfspsvirdi
 
In this era of tough economic conditions voters increasingl.pdf
In this era of tough economic conditions voters increasingl.pdfIn this era of tough economic conditions voters increasingl.pdf
In this era of tough economic conditions voters increasingl.pdfspsvirdi
 
In user interface design what is typically TRUE Group of a.pdf
In user interface design what is typically TRUE Group of a.pdfIn user interface design what is typically TRUE Group of a.pdf
In user interface design what is typically TRUE Group of a.pdfspsvirdi
 
In week 23 and 4 we will look at travel trade from the pers.pdf
In week 23 and 4 we will look at travel trade from the pers.pdfIn week 23 and 4 we will look at travel trade from the pers.pdf
In week 23 and 4 we will look at travel trade from the pers.pdfspsvirdi
 
In use cases an association aka communication relationshi.pdf
In use cases an association aka communication relationshi.pdfIn use cases an association aka communication relationshi.pdf
In use cases an association aka communication relationshi.pdfspsvirdi
 
In use cases an inheritance relationship is A relationship .pdf
In use cases an inheritance relationship is A relationship .pdfIn use cases an inheritance relationship is A relationship .pdf
In use cases an inheritance relationship is A relationship .pdfspsvirdi
 
In their article summarizing how one company rooted out bias.pdf
In their article summarizing how one company rooted out bias.pdfIn their article summarizing how one company rooted out bias.pdf
In their article summarizing how one company rooted out bias.pdfspsvirdi
 
In Unit Seven the Redfield ratio is defined Based on this .pdf
In Unit Seven the Redfield ratio is defined Based on this .pdfIn Unit Seven the Redfield ratio is defined Based on this .pdf
In Unit Seven the Redfield ratio is defined Based on this .pdfspsvirdi
 
in this case we chose the best option would be to work with .pdf
in this case we chose the best option would be to work with .pdfin this case we chose the best option would be to work with .pdf
in this case we chose the best option would be to work with .pdfspsvirdi
 
In the United States in 2017 approximately what percentage .pdf
In the United States in 2017 approximately what percentage .pdfIn the United States in 2017 approximately what percentage .pdf
In the United States in 2017 approximately what percentage .pdfspsvirdi
 
In the video Bob Williams talks about setting up a factory .pdf
In the video Bob Williams talks about setting up a factory .pdfIn the video Bob Williams talks about setting up a factory .pdf
In the video Bob Williams talks about setting up a factory .pdfspsvirdi
 
In this discussion reflect on the head of the IT department.pdf
In this discussion reflect on the head of the IT department.pdfIn this discussion reflect on the head of the IT department.pdf
In this discussion reflect on the head of the IT department.pdfspsvirdi
 
In the ZW sexdetermination system for birds males ZZ are.pdf
In the ZW sexdetermination system for birds males ZZ are.pdfIn the ZW sexdetermination system for birds males ZZ are.pdf
In the ZW sexdetermination system for birds males ZZ are.pdfspsvirdi
 
In the Stanford Journal of law Businessamp Finance expla.pdf
In the Stanford Journal of law Businessamp Finance expla.pdfIn the Stanford Journal of law Businessamp Finance expla.pdf
In the Stanford Journal of law Businessamp Finance expla.pdfspsvirdi
 
In the vertebrate brain each region is specialized in funct.pdf
In the vertebrate brain each region is specialized in funct.pdfIn the vertebrate brain each region is specialized in funct.pdf
In the vertebrate brain each region is specialized in funct.pdfspsvirdi
 
In the Solutions column identify as a team possible solut.pdf
In the Solutions column identify as a team possible solut.pdfIn the Solutions column identify as a team possible solut.pdf
In the Solutions column identify as a team possible solut.pdfspsvirdi
 
In the tugofwar for policy attention elected officials of.pdf
In the tugofwar for policy attention elected officials of.pdfIn the tugofwar for policy attention elected officials of.pdf
In the tugofwar for policy attention elected officials of.pdfspsvirdi
 

More from spsvirdi (18)

In what ways did the evolution of an exoskeleton help insect.pdf
In what ways did the evolution of an exoskeleton help insect.pdfIn what ways did the evolution of an exoskeleton help insect.pdf
In what ways did the evolution of an exoskeleton help insect.pdf
 
In which external environments do changes usually occur mo.pdf
In which external environments do changes usually occur mo.pdfIn which external environments do changes usually occur mo.pdf
In which external environments do changes usually occur mo.pdf
 
In this era of tough economic conditions voters increasingl.pdf
In this era of tough economic conditions voters increasingl.pdfIn this era of tough economic conditions voters increasingl.pdf
In this era of tough economic conditions voters increasingl.pdf
 
In user interface design what is typically TRUE Group of a.pdf
In user interface design what is typically TRUE Group of a.pdfIn user interface design what is typically TRUE Group of a.pdf
In user interface design what is typically TRUE Group of a.pdf
 
In week 23 and 4 we will look at travel trade from the pers.pdf
In week 23 and 4 we will look at travel trade from the pers.pdfIn week 23 and 4 we will look at travel trade from the pers.pdf
In week 23 and 4 we will look at travel trade from the pers.pdf
 
In use cases an association aka communication relationshi.pdf
In use cases an association aka communication relationshi.pdfIn use cases an association aka communication relationshi.pdf
In use cases an association aka communication relationshi.pdf
 
In use cases an inheritance relationship is A relationship .pdf
In use cases an inheritance relationship is A relationship .pdfIn use cases an inheritance relationship is A relationship .pdf
In use cases an inheritance relationship is A relationship .pdf
 
In their article summarizing how one company rooted out bias.pdf
In their article summarizing how one company rooted out bias.pdfIn their article summarizing how one company rooted out bias.pdf
In their article summarizing how one company rooted out bias.pdf
 
In Unit Seven the Redfield ratio is defined Based on this .pdf
In Unit Seven the Redfield ratio is defined Based on this .pdfIn Unit Seven the Redfield ratio is defined Based on this .pdf
In Unit Seven the Redfield ratio is defined Based on this .pdf
 
in this case we chose the best option would be to work with .pdf
in this case we chose the best option would be to work with .pdfin this case we chose the best option would be to work with .pdf
in this case we chose the best option would be to work with .pdf
 
In the United States in 2017 approximately what percentage .pdf
In the United States in 2017 approximately what percentage .pdfIn the United States in 2017 approximately what percentage .pdf
In the United States in 2017 approximately what percentage .pdf
 
In the video Bob Williams talks about setting up a factory .pdf
In the video Bob Williams talks about setting up a factory .pdfIn the video Bob Williams talks about setting up a factory .pdf
In the video Bob Williams talks about setting up a factory .pdf
 
In this discussion reflect on the head of the IT department.pdf
In this discussion reflect on the head of the IT department.pdfIn this discussion reflect on the head of the IT department.pdf
In this discussion reflect on the head of the IT department.pdf
 
In the ZW sexdetermination system for birds males ZZ are.pdf
In the ZW sexdetermination system for birds males ZZ are.pdfIn the ZW sexdetermination system for birds males ZZ are.pdf
In the ZW sexdetermination system for birds males ZZ are.pdf
 
In the Stanford Journal of law Businessamp Finance expla.pdf
In the Stanford Journal of law Businessamp Finance expla.pdfIn the Stanford Journal of law Businessamp Finance expla.pdf
In the Stanford Journal of law Businessamp Finance expla.pdf
 
In the vertebrate brain each region is specialized in funct.pdf
In the vertebrate brain each region is specialized in funct.pdfIn the vertebrate brain each region is specialized in funct.pdf
In the vertebrate brain each region is specialized in funct.pdf
 
In the Solutions column identify as a team possible solut.pdf
In the Solutions column identify as a team possible solut.pdfIn the Solutions column identify as a team possible solut.pdf
In the Solutions column identify as a team possible solut.pdf
 
In the tugofwar for policy attention elected officials of.pdf
In the tugofwar for policy attention elected officials of.pdfIn the tugofwar for policy attention elected officials of.pdf
In the tugofwar for policy attention elected officials of.pdf
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

In the Python file you will be creating a neural network to.pdf

  • 1. In the Python file, you will be creating a neural network to predict the price of a stock. Part of the program is already implemented, your goal is to set up the model, train the model on the training data set, then finally predict the values from the testing data set. You should create a Sequential model with 5 layers. Your model should use 2 LSTM layers, and after each use a Dropout layer with a rate of 0.2. The first LSTM layer should have input_shape as a parameter along with units set to 4. The final layer should be a Dense layer with units set to 1. Once the model is set up, you should compile it with a mean_squared_error loss and the optimizer set to adam. When you fit the training dataset, make sure to set the following values: epochs=5, batch_size=16, verbose=0 Finally, you should run the predict function on the x_test dataset and print the last column of the array along with the model summary.