Naïve Bayes classification models
One of the attractions of naïve Bayes is that you can get decent results quickly, even when you have lots of data. Both fitting and predicting are fairly easy on system resources. Another advantage is that relatively complex relationships can be captured without having to transform the feature space or doing much hyperparameter tuning. We can demonstrate this with the NBA data we worked with in the previous chapter.
We will work with data on National Basketball Association (NBA) games in this section. The dataset contains statistics from each NBA game from the 2017/2018 season through the 2020/2021 season. This includes the home team; whether the home team won; the visiting team; shooting percentages for visiting and home teams; turnovers, rebounds, and assists by both teams; and several other measures.
Note
The NBA game data can be downloaded by the public at https://www.kaggle.com/datasets/wyattowalsh/basketball. This dataset...