Skip to content

feat: enable privacy evaluation for models trained externally #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mohsinehajar
Copy link
Member

This PR introduces support for running privacy evaluation on models that were trained externally (outside the Guardian AI). This allows users to assess privacy risks, such as potential membership inference attacks, on pre-trained models without requiring them to be retrained within the framework

@pallika @YashaPushak

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 23, 2025
@YashaPushak YashaPushak requested a review from pallika June 23, 2025 16:39
@@ -60,7 +60,7 @@ def __init__(
AttackRunner
"""
self.dataset = dataset
assert self.dataset.target_model_data is not None
#assert self.dataset.target_model_data is not None
assert self.dataset.attack_model_data is not None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert statements are not recommended in python code, as there are cases in which they are ignored, depending on how you run the code, which can introduce security vulnerabilities.

The standard in this repo is to only raise exceptions from this file https://github.com/oracle/guardian-ai/blob/main/guardian_ai/utils/exception.py

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @YashaPushak
I can take care of this one. However, I did notice that there are other assert statements in the code that were already present in the repo before my PR
@pallika @hamidmozaffari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants