Python sports betting toolbox.
Project description
sports-betting
Introduction
The sports-betting package is a collection of tools that makes it easy to create machine learning models for sports betting and evaluate their performance. It is compatible with scikit-learn.
Usage
You can download sports betting data:
from sportsbet.datasets import FTESoccerDataLoader dataloader = FTESoccerDataLoader() X_train, Y_train, O_train = dataloader.extract_train_data()
Use the historical data to backtest the performance of models:
from sportsbet.evaluation import ClassifierBettor num_features = [ col for col in X_train.columns if X_train[col].dtype in (np.dtype(int), np.dtype(float)) ] X_train = X_train[num_features] bettor = ClassifierBettor(KNeighborsClassifier()) bettor.backtest(X_train, Y_train, O_train)
Get the value bets using fixtures data:
X_fix, Y_fix, O_fix = dataloader.extract_fixtures_data() value_bets = bettor.bet(X_fix[num_features], O_fix)
Installation
sports-betting is currently available on the PyPi’s repositories and you can install it via pip:
pip install -U sports-betting
The package is released also in Anaconda Cloud platform:
conda install -c gdouzas sports-betting
Documentation
Installation documentation, API documentation, and examples can be found in the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sports-betting-0.2.0.tar.gz.
File metadata
- Download URL: sports-betting-0.2.0.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55d7573369e315c9b86647e42834d1ba11fdf853fa4afa8a53a902ca0534cd23
|
|
| MD5 |
51a715cf18dae3de9c9f24d583aeb1ff
|
|
| BLAKE2b-256 |
b2b43b1bd1762c2cc63c288b4cdd7be1ed14163383435ebf7829533ffb19d456
|
File details
Details for the file sports_betting-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sports_betting-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079a85a3d58c7b12e67a3e0678b5d1bd8ec63f96ddd71826b79a013025ec4d91
|
|
| MD5 |
2ddb9a4c50dd1e780acbb5de5ba708ba
|
|
| BLAKE2b-256 |
7bfbe0e7c9fb243b1422751b8bb6c2646af0da65d118627f3a921c4ab132c0cb
|