The csa_prediction_engine library provides a suite of tools and functions for performing relevance-based predictions using the Cambridge Sports Analytics Prediction Engine API. The package is designed to facilitate single and multi-task predictions, allowing for flexible model evaluation and experimentation.
Project description
Cambridge Sports Analytics Prediction Engine
The CSA Prediction Engine is the official Python client for interacting with the Cambridge Sports Analytics (CSA) API. It enables relevance-based predictions using flexible configurations, including support for batch jobs, grid evaluations, and multi-task prediction workflows.
Source code: github.com/CambridgeSportsAnalytics/csa_prediction_engine
Key features
- Single task predictions: One dependent variable and one set of circumstances.
- Multi-y predictions: Multiple dependent variables with a single set of circumstances.
- Multi-theta predictions: One dependent variable with multiple sets of circumstances.
- Relevance-based grid predictions: Optimal composite prediction across thresholds and variable combinations.
- Grid singularity predictions: Highest adjusted-fit prediction from the grid.
- MaxFit predictions: Best-fit model from adjusted relevance.
Installation
Install from PyPI:
pip install csa-prediction-engine
Requires Python 3.11.
Package layout
csa_prediction_engine/
├── api_client.py # Public API: predict_*, decorators, quota helpers
├── bin/
│ ├── _workers.py # Worker implementations for prediction tasks
│ └── single_tasks.py # Single-task CLI-style entry helpers
├── helpers/
│ ├── _auth_manager.py # API authentication
│ ├── _details_handler.py # Model details retrieval and storage
│ ├── _payload_handler.py # Request payloads and endpoint routing
│ ├── _postmaster.py # Internal HTTP / communication helpers
│ └── _router.py # Task routing from configuration
├── parallel/
│ ├── _dispatchers.py # Parallel task dispatch
│ ├── _threaded_predictions.py # Threaded async prediction runs
│ └── _workers.py # Parallel worker processes
├── version.py # Package version string
└── __init__.py
Documentation and examples
For OpenAPI specs, quickstart examples, and tutorials, see the companion repository:
CSA Prediction Engine quickstart
Contributing
Bug reports and feature requests are welcome. Reach out to the team at support@csanalytics.io.
License
Copyright (c) 2023–2026 Cambridge Prediction Analytics, LLC. All rights reserved.
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 csa_prediction_engine-2.5.0.tar.gz.
File metadata
- Download URL: csa_prediction_engine-2.5.0.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30ea454b1e0223a54ac7e3baec6749d34b698aa8f084373f4f7c55c263ec07cc
|
|
| MD5 |
2e74491be8667bc801bfbf69fb190f45
|
|
| BLAKE2b-256 |
5f76d058542b54c226e76ca233f7aed159dcdb9760e7b205b08c001d2a163142
|
File details
Details for the file csa_prediction_engine-2.5.0-py3-none-any.whl.
File metadata
- Download URL: csa_prediction_engine-2.5.0-py3-none-any.whl
- Upload date:
- Size: 62.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235c1a8fa112e9502659aa6ce7f76dd977757e5367e7960e96ffc1afd4e71bd7
|
|
| MD5 |
835c6fb7bdd1abd5939b1b409a39ebad
|
|
| BLAKE2b-256 |
18723b12ab5fcc2cdec6c8646064e78d9115af8751ea2577c504cdb522ce972c
|