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:
- Initialize
ExportPredictiveModelfromtarandm_analyticspackage. - Prepare monitoring data using
get_monitoring_datamethod. This will calculate data to monitor stability through population stability index (PSI). - Prepare predictive model data for export to disk using
prepare_predictive_model_datamethod. - Export model to disk using
build_predictive_modelmethod. 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:
- Initialize
EvaluateAttributesclass. - List available attribute classes using
get_attribute_classes. - List available business cases using
get_business_cases. - Run
evaluatemethod. 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. - Once the attributes are evaluated, fetch the data using
fetch_data_from_dbmethod. It requires process ID as a parameter. This can be found inlast_attribute_extractor_idproperty ofEvaluateAttributesobject.
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
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 tarandm_analytics-0.1.10.tar.gz.
File metadata
- Download URL: tarandm_analytics-0.1.10.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.9 Linux/5.10.0-20-cloud-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5174eab6f4e122f52feab436541426d5e51ff4de53a2a9711126a53e77d2d271
|
|
| MD5 |
0e94bed15710a302594075440a3402a5
|
|
| BLAKE2b-256 |
3589ad1488239895a17ce9cfe887f4dc32e8e274b48454964165a86a1dddd49d
|
File details
Details for the file tarandm_analytics-0.1.10-py3-none-any.whl.
File metadata
- Download URL: tarandm_analytics-0.1.10-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.9 Linux/5.10.0-20-cloud-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa0be97d1615002b87b68ee45ca82fcabd28b0072c6625e8c937e247ef90cd7
|
|
| MD5 |
9dcbdf76435c9afda48af09891a86805
|
|
| BLAKE2b-256 |
a72887ee6eef2414ba89434f1df32b5bf9cce95a9355ddd8aace6f292f6deebb
|