SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Question 4
We would now like to test on our testing data that we produced from Question 2. This test will
give the Root Mean Squared Logarithmic Error (RMSLE), which is given by:
=1=1[(1+)(1+)]2RMSLE=1Ni=1N[log(1+pi)log(1+yi)]2
where pi refers to the thith prediction made from X_test, yi refers to the thith value in y_test, and
N is the length of y_test.
Function Specifications:
Should take a trained model and two arrays as input. This will be the X_test and y_test variables
from Question 2.
Should return the Root Mean Squared Logarithmic Error (RMSLE) over the input from the
predicted values of X_test as compared to values of y_test.
The output should be a float rounded to 3 decimal places.
In [78]:
1
2
3
4
5
6
In [79]:
1
2
3
4
Out[79]:
Expected Outputs:

Mais conteúdo relacionado

Mais de jeetupnl

Question 2 An older adult was being discharged from an intermediate .pdf
Question 2 An older adult was being discharged from an intermediate .pdfQuestion 2 An older adult was being discharged from an intermediate .pdf
Question 2 An older adult was being discharged from an intermediate .pdfjeetupnl
 
Question 1There is a smallnarrow bridge that has straight water f.pdf
Question 1There is a smallnarrow bridge that has straight water f.pdfQuestion 1There is a smallnarrow bridge that has straight water f.pdf
Question 1There is a smallnarrow bridge that has straight water f.pdfjeetupnl
 
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdf
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdfQUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdf
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdfjeetupnl
 
Question 23The following are forms of non-judicial actions e.pdf
Question 23The following are forms of non-judicial actions e.pdfQuestion 23The following are forms of non-judicial actions e.pdf
Question 23The following are forms of non-judicial actions e.pdfjeetupnl
 
Question 1Consider the following case study about knowledge manage.pdf
Question 1Consider the following case study about knowledge manage.pdfQuestion 1Consider the following case study about knowledge manage.pdf
Question 1Consider the following case study about knowledge manage.pdfjeetupnl
 
QUESTION 13Which is not correctThe financial markets serves as .pdf
QUESTION 13Which is not correctThe financial markets serves as .pdfQUESTION 13Which is not correctThe financial markets serves as .pdf
QUESTION 13Which is not correctThe financial markets serves as .pdfjeetupnl
 
Question 16When three or more creditors join hands to file a.pdf
Question 16When three or more creditors join hands to file a.pdfQuestion 16When three or more creditors join hands to file a.pdf
Question 16When three or more creditors join hands to file a.pdfjeetupnl
 
question 15One of the disadvantages to using focus groups to collec.pdf
question 15One of the disadvantages to using focus groups to collec.pdfquestion 15One of the disadvantages to using focus groups to collec.pdf
question 15One of the disadvantages to using focus groups to collec.pdfjeetupnl
 
Question 12What are the courses of action available for a fi.pdf
Question 12What are the courses of action available for a fi.pdfQuestion 12What are the courses of action available for a fi.pdf
Question 12What are the courses of action available for a fi.pdfjeetupnl
 
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdf
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdfQuestion 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdf
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdfjeetupnl
 
Question 12 (11 marks) Read the following case and answer the ques.pdf
Question 12 (11 marks) Read the following case and answer the ques.pdfQuestion 12 (11 marks) Read the following case and answer the ques.pdf
Question 12 (11 marks) Read the following case and answer the ques.pdfjeetupnl
 
question 1.Some Events in the Process of Fertilization 1. A singl.pdf
question 1.Some Events in the Process of Fertilization 1. A singl.pdfquestion 1.Some Events in the Process of Fertilization 1. A singl.pdf
question 1.Some Events in the Process of Fertilization 1. A singl.pdfjeetupnl
 
Question 11 (5 points)If a bank has �10 million of chequeable de.pdf
Question 11 (5 points)If a bank has �10 million of chequeable de.pdfQuestion 11 (5 points)If a bank has �10 million of chequeable de.pdf
Question 11 (5 points)If a bank has �10 million of chequeable de.pdfjeetupnl
 
Question 1 Determine the likely spatial distributions of the follow.pdf
Question 1 Determine the likely spatial distributions of the follow.pdfQuestion 1 Determine the likely spatial distributions of the follow.pdf
Question 1 Determine the likely spatial distributions of the follow.pdfjeetupnl
 
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdf
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdfQuestion 10 a. What is the capital asset pricing model (CAPM) The s.pdf
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdfjeetupnl
 
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdf
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdfQuain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdf
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdfjeetupnl
 
quantitative methods in finance Consider an asset that does not pay .pdf
quantitative methods in finance Consider an asset that does not pay .pdfquantitative methods in finance Consider an asset that does not pay .pdf
quantitative methods in finance Consider an asset that does not pay .pdfjeetupnl
 
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdf
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdfQuestion 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdf
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdfjeetupnl
 
Question 1 (Marks 70) Consider the following case study about knowl.pdf
Question 1 (Marks 70) Consider the following case study about knowl.pdfQuestion 1 (Marks 70) Consider the following case study about knowl.pdf
Question 1 (Marks 70) Consider the following case study about knowl.pdfjeetupnl
 
Question 1 .pdf
Question 1                                                          .pdfQuestion 1                                                          .pdf
Question 1 .pdfjeetupnl
 

Mais de jeetupnl (20)

Question 2 An older adult was being discharged from an intermediate .pdf
Question 2 An older adult was being discharged from an intermediate .pdfQuestion 2 An older adult was being discharged from an intermediate .pdf
Question 2 An older adult was being discharged from an intermediate .pdf
 
Question 1There is a smallnarrow bridge that has straight water f.pdf
Question 1There is a smallnarrow bridge that has straight water f.pdfQuestion 1There is a smallnarrow bridge that has straight water f.pdf
Question 1There is a smallnarrow bridge that has straight water f.pdf
 
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdf
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdfQUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdf
QUESTION 2 (10 points) Among 100 fish caught in a large lake, 22 wer.pdf
 
Question 23The following are forms of non-judicial actions e.pdf
Question 23The following are forms of non-judicial actions e.pdfQuestion 23The following are forms of non-judicial actions e.pdf
Question 23The following are forms of non-judicial actions e.pdf
 
Question 1Consider the following case study about knowledge manage.pdf
Question 1Consider the following case study about knowledge manage.pdfQuestion 1Consider the following case study about knowledge manage.pdf
Question 1Consider the following case study about knowledge manage.pdf
 
QUESTION 13Which is not correctThe financial markets serves as .pdf
QUESTION 13Which is not correctThe financial markets serves as .pdfQUESTION 13Which is not correctThe financial markets serves as .pdf
QUESTION 13Which is not correctThe financial markets serves as .pdf
 
Question 16When three or more creditors join hands to file a.pdf
Question 16When three or more creditors join hands to file a.pdfQuestion 16When three or more creditors join hands to file a.pdf
Question 16When three or more creditors join hands to file a.pdf
 
question 15One of the disadvantages to using focus groups to collec.pdf
question 15One of the disadvantages to using focus groups to collec.pdfquestion 15One of the disadvantages to using focus groups to collec.pdf
question 15One of the disadvantages to using focus groups to collec.pdf
 
Question 12What are the courses of action available for a fi.pdf
Question 12What are the courses of action available for a fi.pdfQuestion 12What are the courses of action available for a fi.pdf
Question 12What are the courses of action available for a fi.pdf
 
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdf
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdfQuestion 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdf
Question 17 (4 points)Walt Disney acquired Pixar Animation Studi.pdf
 
Question 12 (11 marks) Read the following case and answer the ques.pdf
Question 12 (11 marks) Read the following case and answer the ques.pdfQuestion 12 (11 marks) Read the following case and answer the ques.pdf
Question 12 (11 marks) Read the following case and answer the ques.pdf
 
question 1.Some Events in the Process of Fertilization 1. A singl.pdf
question 1.Some Events in the Process of Fertilization 1. A singl.pdfquestion 1.Some Events in the Process of Fertilization 1. A singl.pdf
question 1.Some Events in the Process of Fertilization 1. A singl.pdf
 
Question 11 (5 points)If a bank has �10 million of chequeable de.pdf
Question 11 (5 points)If a bank has �10 million of chequeable de.pdfQuestion 11 (5 points)If a bank has �10 million of chequeable de.pdf
Question 11 (5 points)If a bank has �10 million of chequeable de.pdf
 
Question 1 Determine the likely spatial distributions of the follow.pdf
Question 1 Determine the likely spatial distributions of the follow.pdfQuestion 1 Determine the likely spatial distributions of the follow.pdf
Question 1 Determine the likely spatial distributions of the follow.pdf
 
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdf
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdfQuestion 10 a. What is the capital asset pricing model (CAPM) The s.pdf
Question 10 a. What is the capital asset pricing model (CAPM) The s.pdf
 
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdf
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdfQuain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdf
Quain Lawn and Garden, Inc. Bill and Jeanne Quain spent a career a.pdf
 
quantitative methods in finance Consider an asset that does not pay .pdf
quantitative methods in finance Consider an asset that does not pay .pdfquantitative methods in finance Consider an asset that does not pay .pdf
quantitative methods in finance Consider an asset that does not pay .pdf
 
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdf
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdfQuestion 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdf
Question 1 [35 marks] 1.1 According to Statistics South Africa (2015.pdf
 
Question 1 (Marks 70) Consider the following case study about knowl.pdf
Question 1 (Marks 70) Consider the following case study about knowl.pdfQuestion 1 (Marks 70) Consider the following case study about knowl.pdf
Question 1 (Marks 70) Consider the following case study about knowl.pdf
 
Question 1 .pdf
Question 1                                                          .pdfQuestion 1                                                          .pdf
Question 1 .pdf
 

Último

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 

Último (20)

APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
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 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 

Question 4We would now like to test on our testing data that we pr.pdf

  • 1. Question 4 We would now like to test on our testing data that we produced from Question 2. This test will give the Root Mean Squared Logarithmic Error (RMSLE), which is given by: =1=1[(1+)(1+)]2RMSLE=1Ni=1N[log(1+pi)log(1+yi)]2 where pi refers to the thith prediction made from X_test, yi refers to the thith value in y_test, and N is the length of y_test. Function Specifications: Should take a trained model and two arrays as input. This will be the X_test and y_test variables from Question 2. Should return the Root Mean Squared Logarithmic Error (RMSLE) over the input from the predicted values of X_test as compared to values of y_test. The output should be a float rounded to 3 decimal places. In [78]: 1 2 3 4 5 6 In [79]: 1 2 3 4 Out[79]: Expected Outputs: