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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

tarandm_analytics-1.1.11-cp313-cp313-win_amd64.whl (950.4 kB view details)

Uploaded CPython 3.13Windows x86-64

tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.41+ x86-64

tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_aarch64.whl (6.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.41+ ARM64

tarandm_analytics-1.1.11-cp313-cp313-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

File details

Details for the file tarandm_analytics-1.1.11-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for tarandm_analytics-1.1.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ec036b4aa55999b6f1b3e2659cd212054c2215b145f447a096e890ea30c23c0
MD5 1848e6ee5d587b9d3e4c4bb4a5b00f10
BLAKE2b-256 482d793dcde0924e86ae72578ba73e9a84d8a1647666b2f66a2cd02a4028fcda

See more details on using hashes here.

File details

Details for the file tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_x86_64.whl.

File metadata

File hashes

Hashes for tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_x86_64.whl
Algorithm Hash digest
SHA256 ebbda0f5bdf5f8cf303e0721d3ef8ff5a68bd3858a5c7e5611c5c8c03ee7bc86
MD5 c061c656b87d57de89229daec8b46b49
BLAKE2b-256 d35709e3492a7d8ac352d7a798a6515adccb6d8459807b220756db371e1764ce

See more details on using hashes here.

File details

Details for the file tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_aarch64.whl.

File metadata

File hashes

Hashes for tarandm_analytics-1.1.11-cp313-cp313-manylinux_2_41_aarch64.whl
Algorithm Hash digest
SHA256 a5708e434c89ae1c9462da5aa840199158dfacd598fb192ee52c44bbf73d5eea
MD5 c4da680a4f85e9a3c6c1aa448d546df6
BLAKE2b-256 24e19db0b1b6374fdfcbef66c24de0bea2193fe06fbeb83770d0cf5cf1775cab

See more details on using hashes here.

File details

Details for the file tarandm_analytics-1.1.11-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tarandm_analytics-1.1.11-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 40be9519c0979e825c0f766181470391a1a242998042d33073d1e550a2969bcf
MD5 2ea3c73006ba69cb8daf9f0659ae077c
BLAKE2b-256 1ed21a78dea77092aa63b0979d2ba3755c2f5f9b9facc600d7d4941343199949

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