gchers / fbleau Goto Github PK
View Code? Open in Web Editor NEWA tool for estimating a system's information leakage via Machine Learning
License: MIT License
A tool for estimating a system's information leakage via Machine Learning
License: MIT License
I'm using fbleau on log-losses features for membership inference attacks (mia), and I noticed that fbleau consistently beats random guessing on control models: constant (losses = np.ones) and random.
Here's the gist to reproduce the results with python run_fbleau: I obtain attackers accuracy > 0.5 on most of the control models: https://gist.github.com/EliottZemour/2ed30b875be5cfe427bc44b55ec74f01
I'm getting an error while calling this command.
$ fbleau --version
thread 'main' panicked at '[!] failed to load training data: Error(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }))', src/libcore/result.rs:997:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Hello,
I'm trying to install fbleau on my 16.04 Ubuntu computer which fails with the message below. I tried calling the install command on bash and zsh and both of them return this error. Can you help me with this?
Cheers,
$ cargo install fbleau
Updating registry `https://github.com/rust-lang/crates.io-index`
Installing fbleau v0.2.1
Compiling ucd-util v0.1.3
Compiling libc v0.2.51
Compiling serde v1.0.90
Compiling ryu v0.2.7
Compiling proc-macro2 v0.4.27
Compiling nodrop v0.1.13
Compiling either v1.5.2
Compiling regex v1.1.5
Compiling itoa v0.4.3
Compiling lazy_static v1.3.0
Compiling ndarray v0.11.2
Compiling utf8-ranges v1.0.2
Compiling arrayvec v0.4.10
Compiling void v1.0.2
Compiling strsim v0.9.0
Compiling memoffset v0.2.1
error[E0046]: not all trait items implemented, missing: `description`
--> /home/burak/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.9.0/src/lib.rs:26:1
|
26 | impl Error for StrSimError {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `description` in implementation
|
= note: `description` from trait: `fn(&Self) -> &str`
error: aborting due to previous error
error: Could not compile `strsim`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `fbleau v0.2.1`, intermediate artifacts can be found at `/tmp/cargo-install.j1hh7kY9wkNz`
Caused by:
build failed
There should be an option (even default maybe?) to completely supress all output in the python lib.
It looks like run_fbleau
returns a tuple, not a dictionary as stated in the doc.
It seems that the equality check in knn.rs should be made approximate:
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
left: `Some(0.0000000000000004440892098500626)`,
right: `Some(0.0000000000000002220446049250313)`', src/estimates/knn.rs:390:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fatal runtime error: failed to initiate panic, error 5
maturin build --cargo-extra-args="--features python-module"
fails with error:
error[E0308]: mismatched types=========> ] 83/84: fbleau
--> src/python_module.rs:103:13
|
103 | train_x,
| ^^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
|
= note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>`
found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>`
= note: perhaps two different versions of crate `ndarray` are being used?
error[E0308]: mismatched types=========> ] 83/84: fbleau
--> src/python_module.rs:104:13
|
104 | train_y,
| ^^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
|
= note: expected struct `ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>`
found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<usize>, ndarray::dimension::dim::Dim<[usize; 1]>>`
= note: perhaps two different versions of crate `ndarray` are being used?
error[E0308]: mismatched types=========> ] 83/84: fbleau
--> src/python_module.rs:105:13
|
105 | test_x,
| ^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
|
= note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>`
found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<f64>, ndarray::dimension::dim::Dim<[usize; 2]>>`
= note: perhaps two different versions of crate `ndarray` are being used?
error[E0308]: mismatched types=========> ] 83/84: fbleau
--> src/python_module.rs:106:13
|
106 | test_y,
| ^^^^^^ expected struct `ArrayBase`, found struct `ndarray::ArrayBase`
|
= note: expected struct `ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>`
found struct `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<usize>, ndarray::dimension::dim::Dim<[usize; 1]>>`
= note: perhaps two different versions of crate `ndarray` are being used?
error: aborting due to 4 previous errors ] 83/84: fbleau
For more information about this error, try `rustc --explain E0308`.
error: could not compile `fbleau`
Probably due to this issue: https://githubmemory.com/repo/PyO3/rust-numpy/issues/188.
Quick fix: use dependency ndarray = "0.15"
in Cargo.toml
.
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.