Test package to get visualisation for a given projectid as reference analyzed on different RDLC phase process models
Project description
DA4RDM_Vis_ProcessBased
Description
The DA4RDM_Vis_ProcessBased is a python based package that can be used to evaluate fitness scores for the RDLC phases namely Planning, Production, Analysis, Archival, Access and Reuse for a reference projectid. The fitness scores are evaluated by generating a meaningful log based on the records associated with the reference projectid, converting them into a format accepted by the pm4py process mining algorithm and then evaluating alighment based fitness values by replaying the log on models defined for each RDLC phase separately. The package finally provides a radar vizualization of the evaluated fitness scores.
Installation
The package is built using Python as a programming language and utilizes basic python packages. The package also uses the pm4py process mining package for fitness evaluations. Noteworthy, it uses few visualization packages like plotly express and kaleido to get the radar vizualization. Please make sure the necessary packages are installed before execution. Few other packages include scipy, json etc. The test package can be installed using the pip command provided below.
pip install DA4RDM_Vis_ProcessBased
Importing the Module
The package has one important module Vizualize. This modules invokes the necessary functions from other modules that perform the tasks of data extraction, model creation, fitness evaluation and plotting. The module can be imported using the below command:
from DA4RDM_Vis_ProcessBased import Vizualize
Usage
As mentioned earlier, the package can be used to extract fitness values and plot them for a reference ProjectId. The fitness value corresponding to the each RDLC phase is evaluated separately by replaying the log extracted for the reference projectid on the predefined model of the respective RDLC phase. The overall process thus evaluates 6 fitness score corresponsing to the previously mentioned RDLC phases. Finally, a radar vizualization of the same can be generated and the file is saved onto the local disk and the path of the radar vizualization image file is returned. To use the package for generating the radar vizualization, the function process_vis within the module Vizualize should be used. This method is the entry point and invokes the necessary functions that perform the evaluations and render the radar vizualization. The function body along with parameter information is as shown below:
def process_vis(dataset_user_interactions, project_id, earliest_timestamp, last_timestamp):
"""
:param dataset_user_interactions: filepath to the csv file, a string is expected
:param project_id: the project for which fitness are to be evaluated
:param earliest_timestamp: the earliest timestamp to consider for filtering records
:param last_timestamp: the earliest timestamp to consider for filtering records
"""
Example
Example Usage:
Below is an execution of the function with the parameters provided.
from DA4RDM_Vis_ProcessBased import Visualize
path = Visualize.process_vis('17-02-2023.csv', "f5c043a1-82bc-4c61-bce6-0acbc0062948", '2023-02-14 08:57:44.315', '2021-05-03 02:31:54.652')
print(path)
Output
All the above executions invokes the function process_vis with the passed parameter values. The fitness values are calculated and returned by the function. The radar vizualization is generated and saved onto the local repository of the program using the package. The function finally returns the path for the saved image file as shown below:
C:\Users\avina\anaconda3\lib\site-packages\DA4RDM_Vis_ProcessBased\Radarchart.png
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
Built Distribution
Hashes for DA4RDM_Vis_ProcessBased-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a41fa4baebbf5928734056b2590b4bc5d4cedd37ae951caa18ada56e128ed6 |
|
MD5 | f485c99dbb49f11dda300702c5cddbd6 |
|
BLAKE2b-256 | a119f9e553802526b37474c54744baa54eedc12d0454bc5156c17a4001756724 |
Hashes for DA4RDM_Vis_ProcessBased-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54751ceb851d9c002632b1aa8cfc1f68a8ca5710b1c5c93555a5fda675639519 |
|
MD5 | 3e31a8f69f82161ec7a1383a7ea86e7b |
|
BLAKE2b-256 | a3f8add341f02e33aeee30d8b4b5c276e23abfad1b13c60c8e93843471db5543 |