Tools for benchmarking, metrics, and models.
Project description
randomstatsmodels
A tiny, modern Python package skeleton for experimenting with forecasting and statistics utilities.
Quick start
# from the project root
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]" # install in editable mode with dev extras
randomstatsmodels --version
Usage
from randomstatsmodels.metrics import mae, rmse
y_true = [1, 2, 3]
y_pred = [1.1, 1.9, 3.2]
print(mae(y_true, y_pred))
Testing
pytest -q
Using your models
Put your custom models in randomstatsmodels/user_models.py (we copied your uploaded file there).
Python API
from randomstatsmodels.api import predict
# Model ref can be 'randomstatsmodels.user_models:MyModel' or an object/callable
yhat = predict("randomstatsmodels.user_models:MyModel", X_dataframe)
CLI
randomstatsmodels predict \ --model randomstatsmodels.user_models:MyModel \ --input data.csv \ --output preds.csv
The adapter accepts:
- Objects with
.predict(X, **kwargs) - Callables like
def f(X): ... - Classes that can be instantiated without args and have
.predict(X)
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
randomstatsmodels-0.1.0.tar.gz
(34.2 kB
view details)
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 randomstatsmodels-0.1.0.tar.gz.
File metadata
- Download URL: randomstatsmodels-0.1.0.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
907bf6d991cab7ea12679a12564202eedb292924d02f85c004facff5d0f14a2e
|
|
| MD5 |
c4be1f22713b4feea20e17a3296bf062
|
|
| BLAKE2b-256 |
503a1e38282f57244edef5a30385c273a25deffbdbe6cc77542f38e26ab0fb09
|
File details
Details for the file randomstatsmodels-0.1.0-py3-none-any.whl.
File metadata
- Download URL: randomstatsmodels-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aaaf3a1bf7dbac1dafab592a533e0e8b697a3f5318d8e4ac5f68b6d3d4c2de9
|
|
| MD5 |
9c24656a298ad15eb6d3601e508b125e
|
|
| BLAKE2b-256 |
450d24cdde6b02cd6e0ff18c65895d58f5158a7731c6ffe07564cd3b52a9bcc6
|