Skip to main content

Package links analytics in Python with TaranDM software.

Project description

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.

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

tarandm_analytics-0.1.11.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

tarandm_analytics-0.1.11-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file tarandm_analytics-0.1.11.tar.gz.

File metadata

  • Download URL: tarandm_analytics-0.1.11.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/5.10.0-20-cloud-amd64

File hashes

Hashes for tarandm_analytics-0.1.11.tar.gz
Algorithm Hash digest
SHA256 bccf8d4d3f3e642b834bd0d90876afb259d1fb6569cdef8a3fec1620c7b6ff61
MD5 561b11250da0b7a27d391abb0100739b
BLAKE2b-256 85cf67c7e90f72579e3135f1daace35f912ae623906c92d1046298385aaf4050

See more details on using hashes here.

File details

Details for the file tarandm_analytics-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: tarandm_analytics-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/5.10.0-20-cloud-amd64

File hashes

Hashes for tarandm_analytics-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1f934496a1d80f028df11569bb978042a65e531dab151aa2cf10dd2890426afc
MD5 479cda2251657861c43a0170cf280ef9
BLAKE2b-256 c71510ffe5408b6eef466d402ab60e10de8e73fd5b30c8f60d2c0f3adf1ddc27

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