Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Time Series Data Practice(30 pts) Recall what we mentioned in the class, we have two types of data splitting for training and testing data:

image text in transcribed
1 Time Series Data Practice(30 pts) Recall what we mentioned in the class, we have two types of data splitting for training and testing data: out of sample and out of time. It is proper to use Out of Time splitting method for time series dataset. Writing a function to spilt "Energy" dataset into training and testing data. Parameter input: Start Year: int (default value = 2012), End Year: int (default value = None). Ontput: Train, Test (Data type: Array(Numpy) ) If End Year is None, we will only choose all data with "Data Date" == Start Year as Test data, all other data as Train data. By default, all company Data Date within 2012 will be selected as Testing data. If End Year is NOT None, we will choose all data with "Data Date" == Start Year to End Year as Test data, all other data as Train data, For example, Start Year = 2010, End Year = 2013, all data in 2010, 2011, 2012, 2013 will be selected as Testing data . All return should be array from column "Accumulated Other Comprehensive Income (Loss)" to column "Selling, General and Administrative Expenses"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Oran analizinin amac nedir?

Answered: 1 week ago