Skip to main content

TaranDM analytics

TaranDM analytics is a package with supportive functions for TaranDM decision manager software. Two main areas are covered:

  • Preparation of predictive model deployment
  • Preparation of dataset for predictive model development - attribute evaluator

An example notebook how to use tarandm_analytics is included in the package in tarandm_analytics/examples/tarandm_model_development.ipynb

Predictive model deployment

Strategies in TaranDM can contain predictive models. For compatibility, TaranDM requires specific format in which the model is deployed. tarandm_analytics package provides functions to make the deployment easy.

In TaranDM, predictive models are stored alongside with additional metadata. Those can be used for instance to monitor the model stability. Information about development sample and model performance is also stored amongst others.

After training the predictive model, steps to prepare the model for deployment would typically be:

  1. Initialize ExportPredictiveModel from tarandm_analytics package.
  2. Prepare monitoring data using get_monitoring_data method. This will calculate data to monitor stability through population stability index (PSI).
  3. Prepare predictive model data for export to disk using prepare_predictive_model_data method.
  4. Export model to disk using build_predictive_model method. Model is exported in zip format, that can be uploaded to TaranDM strategy in GUI.

Attribute evaluator

Attribute evaluator provides functions to create a dataset for predictive model development. Past requests are fetched from database and attributes defined in TaranDM attribute classes are evaluated. It uses the same code to evaluate attributes as the production environment, which eliminates potential mismatch in attribute definition during implementation to production.

User can either define past requests to be included in the dataset by listing decision ids directly or by defining business case and time range. Attribute classes to be evaluated are also defined by user.

To prepare the dataset:

  1. Initialize EvaluateAttributes class.
  2. List available attribute classes using get_attribute_classes.
  3. List available business cases using get_business_cases.
  4. Run evaluate method. Business case, time range or list of decision ids are provided as parameters of the method. Note that user is required to provide Git repository with strategies as well as credentials for the repository.
  5. Once the attributes are evaluated, fetch the data using fetch_data_from_db method. It requires process ID as a parameter. This can be found in last_attribute_extractor_id property of EvaluateAttributes object.

Metadata

Release files for tarandm_analytics 1.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for tarandm_analytics 1.1.12
File
tarandm_analytics-1.1.12-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.41+ x86-64 Details
tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.41+ ARM64 Details
tarandm_analytics-1.1.12-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details

Total release size: 15.8 MB

Release files / tarandm_analytics-1.1.12-cp313-cp313-win_amd64.whl

Download URL tarandm_analytics-1.1.12-cp313-cp313-win_amd64.whl
Size 950.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
41c8ce18d0d78c183d86599240c9e9a10830613630deda1997f65c93f88bdd75
BLAKE2b-256 checksum
How to use checksums
43d451b09d31c4ab3305c8f7165094bb1bfd3c63895872833775c52a3ede29a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.12.57+deb13-amd64

Release files / tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_x86_64.whl

Download URL tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_x86_64.whl
Size 6.6 MB
Tags CPython 3.13 Linux glibc 2.41+ x86-64
SHA-256 checksum
How to use checksums
5a619f206ad1122c0afd3c0240f4a5bb405454a2fdabdfd358d0a681c1464813
BLAKE2b-256 checksum
How to use checksums
6705115074e1bd13db5ab04e6626cc41e328b9a13ad6045d22023d7574f3ebe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.12.57+deb13-amd64

Release files / tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_aarch64.whl

Download URL tarandm_analytics-1.1.12-cp313-cp313-manylinux_2_41_aarch64.whl
Size 6.3 MB
Tags CPython 3.13 Linux glibc 2.41+ ARM64
SHA-256 checksum
How to use checksums
b2395adea704205092daf95e690c9884a5f0130268ebf45e2646880499dab81b
BLAKE2b-256 checksum
How to use checksums
f80a0b1294eb826981bb76848cdb5ed73282b98555f89e31cbc54ccb302d3dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.12.57+deb13-amd64

Release files / tarandm_analytics-1.1.12-cp313-cp313-macosx_15_0_arm64.whl

Download URL tarandm_analytics-1.1.12-cp313-cp313-macosx_15_0_arm64.whl
Size 1.9 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
14a122b663b5a5efa83571976aa028ab7b41d82cbafd73bb37e3aa5ed0cdc432
BLAKE2b-256 checksum
How to use checksums
c17b0493ec8c5d65dc1562e77dc23abb757da1566b363a86ae0fbcd2191a06b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.12.57+deb13-amd64
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page