SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
The root-mean-squared-error (RMSE) is a measure of the differences between values predicted
by a model or an equation and the actual values. RMSE is defined as: RMSE=n1i=1n(yiyi^)2
where yi is actual data point, yi is the predicted value and n is the number of data points. Write a
function called "rmse" that returns the RMSE and stored it as rmse module.py . The function
receives 2 input arguments: the x and the y vectors representing predicted and actual value of
data points. QUESTION 1.b)[20] Create a Python script called main. py and import the
rmse_module. Write a menu driven program that displays followings: 1- Calculating RMSE 2
Quit This program must ask the user for 5 predicted value and 5 actual data point and display the
RMSE value. Sample output: Menu 1) Calculating RMSE 2) Quit Enter your desired action: 1
Enter the first actual value: 1 Enter the second actual value: 2 Enter the third actual value: 3
Enter the fourth actual value: 4 Enter the fifth actual value: 5 Enter the first predicted value: 1.6
Enter the second predicted value: 2.5 Enter the third predicted value: 2.9 Enter the fourth
predicted value: 3 Enter the fifth predicted value: 4.1 Root Mean Square Error:
0.6971370023173351 Menu 1) Calculating RMSE 2) Quit Enter your desired action: 2

Weitere ähnliche Inhalte

Ähnlich wie The root-mean-squared-error (RMSE) is a measure of the differences be.pdf

C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1Zaibi Gondal
 
OOP program questions with answers
OOP program questions with answersOOP program questions with answers
OOP program questions with answersQuratulain Naqvi
 
C++ Course - Lesson 2
C++ Course - Lesson 2C++ Course - Lesson 2
C++ Course - Lesson 2Mohamed Ahmed
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docxSwatiMishra364461
 
Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make YASHU40
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy BookAbir Hossain
 
Please be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docxPlease be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docxlorindajamieson
 
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxPage 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxalfred4lewis58146
 

Ähnlich wie The root-mean-squared-error (RMSE) is a measure of the differences be.pdf (15)

C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
OOP program questions with answers
OOP program questions with answersOOP program questions with answers
OOP program questions with answers
 
Exercise1 java
Exercise1 javaExercise1 java
Exercise1 java
 
C++ Course - Lesson 2
C++ Course - Lesson 2C++ Course - Lesson 2
C++ Course - Lesson 2
 
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORYGE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
GE3171-PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docx
 
Programming Fundamental handouts
Programming Fundamental handoutsProgramming Fundamental handouts
Programming Fundamental handouts
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
 
OOP Assignment 03.pdf
OOP Assignment 03.pdfOOP Assignment 03.pdf
OOP Assignment 03.pdf
 
Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make Question 1 briefly respond to all the following questions. make
Question 1 briefly respond to all the following questions. make
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy Book
 
Please be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docxPlease be advised that there are four (4) programs just like this on.docx
Please be advised that there are four (4) programs just like this on.docx
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
 
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docxPage 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
Page 1 of 3 MATH133 Unit 4 Functions and Their Graphs .docx
 
Ch03
Ch03Ch03
Ch03
 

Mehr von amabajisgents

The population proportion is 0.45 . What is the probability that a sa.pdf
 The population proportion is 0.45 . What is the probability that a sa.pdf The population proportion is 0.45 . What is the probability that a sa.pdf
The population proportion is 0.45 . What is the probability that a sa.pdfamabajisgents
 
The Poisson distribution, with unknown parameter 0, has probability .pdf
 The Poisson distribution, with unknown parameter 0, has probability .pdf The Poisson distribution, with unknown parameter 0, has probability .pdf
The Poisson distribution, with unknown parameter 0, has probability .pdfamabajisgents
 
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
 The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdfamabajisgents
 
The offspring of two fast plants of unknown genotypes are shown.pdf
 The offspring of two fast plants of unknown genotypes are shown.pdf The offspring of two fast plants of unknown genotypes are shown.pdf
The offspring of two fast plants of unknown genotypes are shown.pdfamabajisgents
 
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
 The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdfamabajisgents
 
The risks that cooperative strategies often carry include which of th.pdf
 The risks that cooperative strategies often carry include which of th.pdf The risks that cooperative strategies often carry include which of th.pdf
The risks that cooperative strategies often carry include which of th.pdfamabajisgents
 
the right. S1 represents the marginal private cost of production and .pdf
 the right. S1 represents the marginal private cost of production and .pdf the right. S1 represents the marginal private cost of production and .pdf
the right. S1 represents the marginal private cost of production and .pdfamabajisgents
 
The Republic of Yuck is a simple economy with no government, no taxes.pdf
 The Republic of Yuck is a simple economy with no government, no taxes.pdf The Republic of Yuck is a simple economy with no government, no taxes.pdf
The Republic of Yuck is a simple economy with no government, no taxes.pdfamabajisgents
 
The reservoir for a disease can be living or non-living True False Qu.pdf
 The reservoir for a disease can be living or non-living True False Qu.pdf The reservoir for a disease can be living or non-living True False Qu.pdf
The reservoir for a disease can be living or non-living True False Qu.pdfamabajisgents
 
The regression table below is from Did Highways Cause Suburbanizatio.pdf
 The regression table below is from Did Highways Cause Suburbanizatio.pdf The regression table below is from Did Highways Cause Suburbanizatio.pdf
The regression table below is from Did Highways Cause Suburbanizatio.pdfamabajisgents
 
The records at the end of January of the current year for Young Compa.pdf
 The records at the end of January of the current year for Young Compa.pdf The records at the end of January of the current year for Young Compa.pdf
The records at the end of January of the current year for Young Compa.pdfamabajisgents
 
The random variables X and Y have joint probability density function .pdf
 The random variables X and Y have joint probability density function .pdf The random variables X and Y have joint probability density function .pdf
The random variables X and Y have joint probability density function .pdfamabajisgents
 
The questions below all refer to the following pedigree. In humans, t.pdf
 The questions below all refer to the following pedigree. In humans, t.pdf The questions below all refer to the following pedigree. In humans, t.pdf
The questions below all refer to the following pedigree. In humans, t.pdfamabajisgents
 
The radar product is based on how high the 40dBZ reflectivity thresho.pdf
 The radar product is based on how high the 40dBZ reflectivity thresho.pdf The radar product is based on how high the 40dBZ reflectivity thresho.pdf
The radar product is based on how high the 40dBZ reflectivity thresho.pdfamabajisgents
 
The neutrality of money (a) In what sense is money neutral How is mo.pdf
 The neutrality of money (a) In what sense is money neutral How is mo.pdf The neutrality of money (a) In what sense is money neutral How is mo.pdf
The neutrality of money (a) In what sense is money neutral How is mo.pdfamabajisgents
 
The net present value method is a better method of evaluation than th.pdf
 The net present value method is a better method of evaluation than th.pdf The net present value method is a better method of evaluation than th.pdf
The net present value method is a better method of evaluation than th.pdfamabajisgents
 
The purpose of this project is to develop a code which will compare a.pdf
 The purpose of this project is to develop a code which will compare a.pdf The purpose of this project is to develop a code which will compare a.pdf
The purpose of this project is to develop a code which will compare a.pdfamabajisgents
 
The purpose of this blog post is for you to discuss the history of tu.pdf
 The purpose of this blog post is for you to discuss the history of tu.pdf The purpose of this blog post is for you to discuss the history of tu.pdf
The purpose of this blog post is for you to discuss the history of tu.pdfamabajisgents
 
The production manager of a retail company chain in Australian wants .pdf
 The production manager of a retail company chain in Australian wants .pdf The production manager of a retail company chain in Australian wants .pdf
The production manager of a retail company chain in Australian wants .pdfamabajisgents
 
The Production Department planned to work 4,500 labor hours in March .pdf
 The Production Department planned to work 4,500 labor hours in March .pdf The Production Department planned to work 4,500 labor hours in March .pdf
The Production Department planned to work 4,500 labor hours in March .pdfamabajisgents
 

Mehr von amabajisgents (20)

The population proportion is 0.45 . What is the probability that a sa.pdf
 The population proportion is 0.45 . What is the probability that a sa.pdf The population proportion is 0.45 . What is the probability that a sa.pdf
The population proportion is 0.45 . What is the probability that a sa.pdf
 
The Poisson distribution, with unknown parameter 0, has probability .pdf
 The Poisson distribution, with unknown parameter 0, has probability .pdf The Poisson distribution, with unknown parameter 0, has probability .pdf
The Poisson distribution, with unknown parameter 0, has probability .pdf
 
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
 The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
The paired data below consist of the height (in cm ) of Swedish 10 ye.pdf
 
The offspring of two fast plants of unknown genotypes are shown.pdf
 The offspring of two fast plants of unknown genotypes are shown.pdf The offspring of two fast plants of unknown genotypes are shown.pdf
The offspring of two fast plants of unknown genotypes are shown.pdf
 
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
 The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
The Saint Lucia Blood Bank, a private charity partly supported by gov.pdf
 
The risks that cooperative strategies often carry include which of th.pdf
 The risks that cooperative strategies often carry include which of th.pdf The risks that cooperative strategies often carry include which of th.pdf
The risks that cooperative strategies often carry include which of th.pdf
 
the right. S1 represents the marginal private cost of production and .pdf
 the right. S1 represents the marginal private cost of production and .pdf the right. S1 represents the marginal private cost of production and .pdf
the right. S1 represents the marginal private cost of production and .pdf
 
The Republic of Yuck is a simple economy with no government, no taxes.pdf
 The Republic of Yuck is a simple economy with no government, no taxes.pdf The Republic of Yuck is a simple economy with no government, no taxes.pdf
The Republic of Yuck is a simple economy with no government, no taxes.pdf
 
The reservoir for a disease can be living or non-living True False Qu.pdf
 The reservoir for a disease can be living or non-living True False Qu.pdf The reservoir for a disease can be living or non-living True False Qu.pdf
The reservoir for a disease can be living or non-living True False Qu.pdf
 
The regression table below is from Did Highways Cause Suburbanizatio.pdf
 The regression table below is from Did Highways Cause Suburbanizatio.pdf The regression table below is from Did Highways Cause Suburbanizatio.pdf
The regression table below is from Did Highways Cause Suburbanizatio.pdf
 
The records at the end of January of the current year for Young Compa.pdf
 The records at the end of January of the current year for Young Compa.pdf The records at the end of January of the current year for Young Compa.pdf
The records at the end of January of the current year for Young Compa.pdf
 
The random variables X and Y have joint probability density function .pdf
 The random variables X and Y have joint probability density function .pdf The random variables X and Y have joint probability density function .pdf
The random variables X and Y have joint probability density function .pdf
 
The questions below all refer to the following pedigree. In humans, t.pdf
 The questions below all refer to the following pedigree. In humans, t.pdf The questions below all refer to the following pedigree. In humans, t.pdf
The questions below all refer to the following pedigree. In humans, t.pdf
 
The radar product is based on how high the 40dBZ reflectivity thresho.pdf
 The radar product is based on how high the 40dBZ reflectivity thresho.pdf The radar product is based on how high the 40dBZ reflectivity thresho.pdf
The radar product is based on how high the 40dBZ reflectivity thresho.pdf
 
The neutrality of money (a) In what sense is money neutral How is mo.pdf
 The neutrality of money (a) In what sense is money neutral How is mo.pdf The neutrality of money (a) In what sense is money neutral How is mo.pdf
The neutrality of money (a) In what sense is money neutral How is mo.pdf
 
The net present value method is a better method of evaluation than th.pdf
 The net present value method is a better method of evaluation than th.pdf The net present value method is a better method of evaluation than th.pdf
The net present value method is a better method of evaluation than th.pdf
 
The purpose of this project is to develop a code which will compare a.pdf
 The purpose of this project is to develop a code which will compare a.pdf The purpose of this project is to develop a code which will compare a.pdf
The purpose of this project is to develop a code which will compare a.pdf
 
The purpose of this blog post is for you to discuss the history of tu.pdf
 The purpose of this blog post is for you to discuss the history of tu.pdf The purpose of this blog post is for you to discuss the history of tu.pdf
The purpose of this blog post is for you to discuss the history of tu.pdf
 
The production manager of a retail company chain in Australian wants .pdf
 The production manager of a retail company chain in Australian wants .pdf The production manager of a retail company chain in Australian wants .pdf
The production manager of a retail company chain in Australian wants .pdf
 
The Production Department planned to work 4,500 labor hours in March .pdf
 The Production Department planned to work 4,500 labor hours in March .pdf The Production Department planned to work 4,500 labor hours in March .pdf
The Production Department planned to work 4,500 labor hours in March .pdf
 

Kürzlich hochgeladen

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
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
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
“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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 

Kürzlich hochgeladen (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
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
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
“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...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 

The root-mean-squared-error (RMSE) is a measure of the differences be.pdf

  • 1. The root-mean-squared-error (RMSE) is a measure of the differences between values predicted by a model or an equation and the actual values. RMSE is defined as: RMSE=n1i=1n(yiyi^)2 where yi is actual data point, yi is the predicted value and n is the number of data points. Write a function called "rmse" that returns the RMSE and stored it as rmse module.py . The function receives 2 input arguments: the x and the y vectors representing predicted and actual value of data points. QUESTION 1.b)[20] Create a Python script called main. py and import the rmse_module. Write a menu driven program that displays followings: 1- Calculating RMSE 2 Quit This program must ask the user for 5 predicted value and 5 actual data point and display the RMSE value. Sample output: Menu 1) Calculating RMSE 2) Quit Enter your desired action: 1 Enter the first actual value: 1 Enter the second actual value: 2 Enter the third actual value: 3 Enter the fourth actual value: 4 Enter the fifth actual value: 5 Enter the first predicted value: 1.6 Enter the second predicted value: 2.5 Enter the third predicted value: 2.9 Enter the fourth predicted value: 3 Enter the fifth predicted value: 4.1 Root Mean Square Error: 0.6971370023173351 Menu 1) Calculating RMSE 2) Quit Enter your desired action: 2