Learning Data Mining with Python(Second Edition)
上QQ阅读APP看书,第一时间看更新

Sports outcome prediction

We may be able to do better by trying other features. We have a method for testing how accurate our models are. The cross_val_score method allows us to try new features.

There are many possible features we could use, but we will try the following questions:

  • Which team is considered better generally?
  • Which team won their last encounter?

We will also try putting the raw teams into the algorithm, to check whether the algorithm can learn a model that checks how different teams play against each other.