concept site in category jupyter

This is an excerpt from Manning's book Machine Learning for Business: Using Amazon SageMaker and Jupyter.
You can read more about XGBoost on Amazon’s site: https://docs.aws.amazon.com/sagemaker/latest/dg/xgboost.html.
The DeepAR algorithm was able to identify patterns such as weekly trends in our data from chapter 6. Figure 7.1 shows the predicted and actual usage for site 33 in November. This site follows a consistent weekly pattern.
Figure 7.1. Predicted versus actual consumption from site 33 using the DeepAR model you built in chapter 6
![]()
You and Kiara are heroes. The company newsletter included a two-page spread showing you and Kiara with a large printout of your predictions for December. Unfortunately, when January came around, anyone looking at that photo would have noticed that your predictions weren’t that accurate for December. Fortunately for you and Kiara, not many people noticed because most staff take some holiday time over Christmas, and some of the sites had a mandatory shutdown period.
Categorical—Information about the site that doesn’t change. The dataset site categories, for example, contains categorical data. (A site is a retail site and will likely always be a retail site.)
oIn listing 7.6, you import the holidays. Working days and weekends are marked with a 0; holidays are marked with a 1. There is no need to mark all the weekends as holidays because DeepAR can pick up that pattern from the site meter data. Although you don’t have enough site data for DeepAR to identify annual patterns, DeepAR can work out the pattern if it has access to a dataset that shows holidays at each of the sites.
Listing 7.6. Displaying information about holidays for each site
holiday_df = pd.read_csv( f's3://{data_bucket}/{subfolder}/site_holidays.csv', index_col=0, parse_dates=[0]) print(holiday_df.shape) print(f'timeseries starts at {holiday_df.index[0]} \ and ends at {holiday_df.index[-1]}') holiday_df.loc['2018-12-22':'2018-12-27']Listing 7.7 shows the maximum temperature reached each day for each of the sites. The sites are located in Australia, so energy usage increases as temperatures rise in the summer due to air conditioning; whereas, in more temperate climates, energy usage increases more as temperatures drop below zero degrees centigrade in the winter due to heating.
The datasets used in this chapter can be classified into two types of data: categorical and dynamic. Categorical data is information about the site that doesn’t change, and dynamic data is data that changes over time.