mirror of
https://github.com/rushil-thareja/dp-fusion-lib.git
synced 2026-06-02 18:15:12 +02:00
Initial release v0.1.0
- Token-level differential privacy for LLMs - Integration with Document Privacy API - Comprehensive test suite and documentation - Examples and Jupyter notebook included
This commit is contained in:
commit
d012046d85
31 changed files with 4480 additions and 0 deletions
27
tests/conftest.py
Normal file
27
tests/conftest.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"""Pytest configuration and fixtures for dp-fusion-lib tests."""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_divergences():
|
||||
"""Sample divergence values for testing epsilon computation."""
|
||||
return [0.05, 0.08, 0.03, 0.06, 0.04, 0.07, 0.02, 0.05, 0.09, 0.04]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alpha():
|
||||
"""Standard Renyi order for tests."""
|
||||
return 2.0
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def beta():
|
||||
"""Standard beta value for tests."""
|
||||
return 0.1
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def delta():
|
||||
"""Standard delta value for tests."""
|
||||
return 1e-5
|
||||
Loading…
Add table
Add a link
Reference in a new issue