causalnex icon indicating copy to clipboard operation
causalnex copied to clipboard

Update evaluation.py: Added a function to evaluate the performance of EM models on validation data using a specified metric.

Open abdelghanibelgaid opened this issue 9 months ago • 0 comments

Update evaluation.py: Added a function to evaluate the performance of EM models on validation data using a specified metric.

Motivation and Context

This PR was created to add a new function evaluate_em_model to the codebase. This function allows users to evaluate the performance of a trained EM model on validation data using a specified metric. It enhances the utility of the library by providing a convenient way to assess model performance.

How has this been tested?

The testing process includes the following strategies:

  • Unit Testing: Unit tests have been implemented to assess the functionality of individual components of the evaluate_em_model function. These tests validate that the function behaves as expected under various conditions. Key aspects covered by unit tests include correct computation of the specified metric (e.g., accuracy, F1 score), and handling of edge cases, such as empty validation datasets.
  • Integration Testing: Integration tests focus on evaluating how the evaluate_em_model function interacts with other components of the library. This involves testing the integration of the evaluate_em_model function within the existing library's ecosystem.

Checklist

  • [x] Read the contributing guidelines
  • [x] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • [x] Updated the documentation to reflect the code changes
  • [x] Added a description of this change and added my name to the list of supporting contributions in the RELEASE.md file
  • [x] Added tests to cover my changes
  • [x] Assigned myself to the PR

Notice

  • [x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

  • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.

  • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.

  • I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

abdelghanibelgaid avatar Sep 27 '23 23:09 abdelghanibelgaid