google / rappor

RAPPOR: Privacy-Preserving Reporting Algorithms
Apache License 2.0
862 stars 164 forks source link

ConstrainedLinModel can't solve least squares #110

Open csharrison opened 5 years ago

csharrison commented 5 years ago

This is using R v 3.3.3

I'm attempting to run the demo (or any example test), but consistently failing during ConstrainedLinModel. Here's an example suing regtest.sh:

Output: ./regtest.sh run-seq unif-small-typical
removed '_tmp/cpp/results.html' removed '_tmp/cpp/test-instances.txt' removed '_tmp/cpp/r-unif-small-typical/case_true_map.csv' removed '_tmp/cpp/r-unif-small-typical/spec.txt' removed '_tmp/cpp/r-unif-small-typical/case_params.csv' removed '_tmp/cpp/r-unif-small-typical/case_unique_values.txt' removed '_tmp/cpp/r-unif-small-typical/case_candidates.txt' removed '_tmp/cpp/r-unif-small-typical/1/case_counts.csv' removed '_tmp/cpp/r-unif-small-typical/1/case_true_values.csv' removed '_tmp/cpp/r-unif-small-typical/1/rappor_sim.log' removed '_tmp/cpp/r-unif-small-typical/1/case_reports.csv' removed directory '_tmp/cpp/r-unif-small-typical/1' removed '_tmp/cpp/r-unif-small-typical/case_map.csv' removed directory '_tmp/cpp/r-unif-small-typical/1_report' removed directory '_tmp/cpp/r-unif-small-typical' removed '_tmp/cpp/test-cases.txt' removed '_tmp/cpp/rows.html' removed directory '_tmp/cpp' mkdir: created directory '_tmp/cpp'

----- Setting up parameters and candidate files for r-unif-small-typical

mkdir: created directory '_tmp/cpp/r-unif-small-typical' Done generating parameters for all test cases mkdir: created directory '_tmp/cpp/r-unif-small-typical/1'

----- Generating reports (gen_reports.R)

----- Running RAPPOR C++ client (see rappor_sim.log for errors)

real 0m7.389s user 0m5.953s sys 0m1.435s

----- Summing RAPPOR IRR bits to get 'counts'

mkdir: created directory '_tmp/cpp/r-unif-small-typical/1_report' Using png Warning message: In library(Cairo, quietly = TRUE, logical.return = TRUE) : there is no package called ‘Cairo’ Loading required package: foreach Loaded glmnet 2.0-16

Attaching package: ‘limSolve’

The following object is masked from ‘package:ggplot2’:

resolution

_____ 0.851 Parsing _tmp/cpp/r-unif-small-typical/case_map.csv Error in (function (A = NULL, B = NULL, E = NULL, F = NULL, G = NULL, : cannot solve least squares problem - A and B not compatible Calls: main ... FitDistribution -> ConstrainedLinModel -> do.call -> Timing stopped at: 0.02 0.004 0.023 Execution halted Running compare_dist.R took 0.981 seconds Some test cases failed Done running all test instances Instances succeeded: 0 failed: 0 running: 0 total: 1 Wrote _tmp/cpp/results.html URL: file:///usr/local/google/home/csharrison/rappor/_tmp/cpp/results.html

real 0m16.188s user 0m14.454s sys 0m1.750s

rbhk1 commented 5 years ago

Hello,I have the same problem as you. Has the problem been solved? Thanks!

csharrison commented 5 years ago

cc @ananthr: we chatted about this issue offline.