Skip to content

Commit

Permalink
Merge pull request #130 from Qrlew/add_tau_thrsolding_into_dp_compila…
Browse files Browse the repository at this point in the history
…tion2

Add tau thrsolding into dp compilation2
  • Loading branch information
ngrislain authored Sep 28, 2023
2 parents e9f2d47 + bd10a83 commit 46420fb
Show file tree
Hide file tree
Showing 12 changed files with 1,912 additions and 283 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
<<<<<<< HEAD
## [0.3.5] - 2023-09-28
### Changed
- Implemented a Visitor for doing the DP compilation (`differential_privacy::dp_compile``). Its handles both aggregates and group by columns. [MR129](https://github.com/Qrlew/qrlew/pull/129)
=======
### Fixed
- Order of relations in the Dot representation of `Relation::Join`[MR131](https://github.com/Qrlew/qrlew/pull/131)
>>>>>>> e9f2d47b5ef25bdd7143fe86050cdb9c7459b0de
## [0.3.4] - 2023-09-25
- Fixed examples

## [0.3.3] - 2023-09-25
### Changed
- Updated `sqlparser`

## [0.3.2] - 2023-09-25
### Added
- conversion DataType -> Value for Expr::Function [MR122](https://github.com/Qrlew/qrlew/pull/122)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Nicolas Grislain <ng@sarus.tech>"]
name = "qrlew"
version = "0.3.4"
version = "0.3.5"
edition = "2021"
description = "Sarus Qrlew Engine"
documentation = "https://docs.rs/qrlew"
Expand Down
13 changes: 11 additions & 2 deletions examples/website.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,17 @@ fn compile() {

let epsilon = 1.;
let delta = 1e-3;
let dp_relation = pep_relation.dp_compile(epsilon, delta).unwrap();
let relation = dp_relation.0;
let epsilon_tau_thresholding = 1.;
let delta_tau_thresholding = 1e-3;
let (relation, _) = pep_relation
.dp_compile(
epsilon,
delta,
epsilon_tau_thresholding,
delta_tau_thresholding,
)
.unwrap()
.into();
relation.display_dot().unwrap();
println!("relation = {relation}");
let query = Query::from(&relation);
Expand Down
Loading

0 comments on commit 46420fb

Please sign in to comment.