Question about chart's range of period

For both “Predicted vs Actual High for GLD” & “Predicted vs Actual Low for GLD” charts, why do the charts’ range of period similar to range of period from the csv data file itself? Understand that the test period is 20%, therefore shouldn’t the predicted charts contain range period of only 20% of total data range of period? In this case, 20% would be about 3 months.

Course Name: Trading with Machine Learning: Regression, Section No: 6, Unit No: 5, Unit type: Notebook

Hi RR,

Just to confirm, we are indeed already working with the test data in this part of the code:

# Define the path for the data files
path = "../data_modules/"

# Read the data
X_test = pd.read_csv(
    path + "gold_prices_linear_regression.csv", index_col=0, parse_dates=True)

yU_test = pd.read_csv(path + "gold_prices_yU_test.csv",
                      index_col=0, parse_dates=True)

yD_test = pd.read_csv(path + "gold_prices_yD_test.csv",
                      index_col=0, parse_dates=True)

Let me know if you were referring to something else!

Best,
AJ