nunesgh / bvm-library Goto Github PK
View Code? Open in Web Editor NEWBayes Vulnerability for Microdata Library.
License: GNU Lesser General Public License v3.0
Bayes Vulnerability for Microdata Library.
License: GNU Lesser General Public License v3.0
In the particular case where the secret is a function of the QIDs, the deterministic leakage is being computed as zero. This bug is due to a wrong condition that should be triggered only when prior is 1:
variables['CA'][attribute].update(d = variables['CA'][attribute]['d']/dataset_size)
if variables['CA'][attribute]['d'] == 1:
variables['CA'][attribute].update(d = variables['CA'][attribute]['d'] - 1)
Before the first line, variables['CA'][attribute]['d']
corresponds to the sum of the cardinalities of the partitions induced by the QIDs in which all secret values are the same. This count is going to be equal to the size of the dataset when prior is 1 (i.e., when there is only one possible value for the secret in the whole dataset), but also, more generally in the case of a secret that is a function of the QIDs, since then all partitions have a unique secret value and the sum of their cardinalities is the size of the dataset.
The library does not support NA
or NaN
values and those must be manually filled using the pandas .fillna()
method before calling the BVM()
class, e.g. when creating the pandas DataFrame.
Problem: The histogram provided by the package (for all attacks) is rounding probabilities with <0.5% to 0%, but for any attack the probability can never be 0. The probabilities should not be rounded.
Improvement: Each probability is being rounding before generating the histogram. The histogram could be given without any rounding in the following way:
As the histogram is already a dictionary, it could be given with the interval of bins as the labels. For example:
{
"(0,1]": probability_1,
"(1,2]": probability_2,
...
"(99,100]": probability_100,
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.