Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

randomstatsmodels-0.1.0-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

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

Hashes for randomstatsmodels-0.1.0.tar.gz
Algorithm Hash digest
SHA256 907bf6d991cab7ea12679a12564202eedb292924d02f85c004facff5d0f14a2e
MD5 c4be1f22713b4feea20e17a3296bf062
BLAKE2b-256 503a1e38282f57244edef5a30385c273a25deffbdbe6cc77542f38e26ab0fb09

See more details on using hashes here.

File details

Details for the file randomstatsmodels-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for randomstatsmodels-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aaaf3a1bf7dbac1dafab592a533e0e8b697a3f5318d8e4ac5f68b6d3d4c2de9
MD5 9c24656a298ad15eb6d3601e508b125e
BLAKE2b-256 450d24cdde6b02cd6e0ff18c65895d58f5158a7731c6ffe07564cd3b52a9bcc6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page