Skip to main content

A small package for evaluating numer.ai model locally

Project description

A small library to reproduce the scores on numer.ai diagnistics dashboard.

Installation

pip install numereval

Structure

Numerai main tournament evaluation metrics

Usage:

numereval.numereval.evaluate:

A generic function to calculate basic per-era correlation stats with optional feature exposure and plotting.

Useful for evaluating custom validation split from training data.

from numereval.numereval import evaluate

evaluate(training_data, plot=True, feature_exposure=False)

---

mean            0.105676
std             0.027988
sharpe          3.775714
max_drawdown    -0.000000

TRaining evaluation

numereval.numereval.diagnostics:

To reproduce the scores on diagnostics dashboard locally with optional plotting of per-era correlations.

from numereval.numereval import diagnostics

validation_data = tournament_data[tournament_data.data_type == "validation"]

diagnostics(validation_data, plot=True, example_preds_loc = "numerai_dataset_244\example_predictions.csv")

Validation plot

Sample output

Returned metrics

returned dataframe

Docs will be updated soon!

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

numereval-0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

numereval-0.1-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

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