Skip to main content

A data science package for analyzing generalized renewal processes. The wgrp package is a powerful data science tool designed for analyzing generalized renewal processes, with a special focus on Weibull-based renewal processes (WGRP).

Project description

MESOR WGRP - PACKAGE

The wgrp package is a data science tool aimed at analyzing widespread generalized renewal processes. Using an approach based on WGRP (Weibull-based renewal processes) [1], the package allows one to study the behavior of systems exposed to interventions. Although generally used for technological systems, WGRP can be applied to any system on which interventions (e.g. preventive and corrective maintenance) might arise.

Application Examples

  • Production Systems Breakdowns: After registering when a few corrective and preventive interventions occurs, the times between these interventions can be modeled via WGRP. It makes possible to evaluate the quality of the interventions as well as to predict when new interventions will be demanded. Further, one can compare the performance of a number of systems via the respective WGRP models [2].

  • Natural Catastrophic Events: In the face of the history of when previous catastrophic events have occurred, one can model and forecast when new catastrophic events might occur. It is also possible to compare the natural condition between territories.

Furthermore, the package supports the consideration of different assumptions about the effect of maintenance through the Kijima I and II models, which represent, respectively:

  • Kijima I: where the degree of restoration depends only on the time since the last intervention;
  • Kijima II: where the cumulative effect of interventions is considered, reflecting more realistic scenarios in complex systems.

These models are useful for studying how partial or imperfect maintenance affects the time to next failure.

How to use

A Jupyter notebook with usage examples of most functions is available on GitHub.

Package Installation

To install the package, use the following command:

pip install wgrp

Import and Use of the wgrp_model Class

The wgrp_model class has fit and predict functions, which are similar to those available in other machine learning packages for ease of use.

from wgrp.model import wgrp_model

Starting the Model with your Database

# Initialize the model
model = wgrp_model()

# Example of failure data (time between failures)
data = [1, 2, 5]

# Fit the model to crash data
model.fit(data) # See the function documentation for supported data types

# Make predictions
predict = model.predict(1)

See more about function documentation at: WGRP - Read the Docs


Additional Notes

  • Be sure to consult the full documentation for additional details on the parameters and data types supported by the functions.
  • For more examples and advanced usage, see the Jupyter notebook available in the GitHub repository.

If you have any questions about the package, its usage, or tips, feel free to contact the developers:
Francisco Junior Peixoto Dantas
Paulo Renato Alves Firmino

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

wgrp-0.1.3.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

wgrp-0.1.3-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file wgrp-0.1.3.tar.gz.

File metadata

  • Download URL: wgrp-0.1.3.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for wgrp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d8f30d1f3907ddaa221f3369a6a789e44c95e002d041e75366f9a24fce55ef42
MD5 afe0976415b8be4f3ba2b6a49312dd96
BLAKE2b-256 29840f2b72e0a00e2e9f18dce54f7dc7d267880f14f5f0d61bb69958de54ded7

See more details on using hashes here.

File details

Details for the file wgrp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wgrp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for wgrp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce67c3f3bc9c83ec89e60da2a666300724476fab4477a9ff09bf6d1f62d64247
MD5 5b12d1e1290c46cdda7cb3b5a39b4829
BLAKE2b-256 a49656ef5787587e73eec379556abb4846dade3d0729c37f5b8348448cf12071

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