Code Monkey home page Code Monkey logo

k_anonymity_dl's Introduction

k-anonymity & Deep Learning

Dataset

  • Dataset used throughout the experiment: Adult dataset (used only 300 samples from the original dataset)
  • 我利用 Mondrian 的 k-anonymity 演算法( K=3 ),我設定的 Quasi-Identifier 為 [ age , education-num , hours-per-week ],並且將資料集中的 fnlwgtcapital-gaincapital-loss 去掉,所以 total feature column 為 11 個,要預測的 target 為 income

Model

Model(
  (net): Sequential(
    (0): Linear(in_features=11, out_features=128, bias=True)
    (1): ReLU()
    (2): Dropout(p=0.5, inplace=False)
    (3): Linear(in_features=128, out_features=64, bias=True)
    (4): ReLU()
    (5): Linear(in_features=64, out_features=2, bias=True)
    (6): Softmax(dim=1)
  )
)

Evaluation

Dataset without Anonymity

Category/Metrics Precision Recall
Income <= 50 84.62% 78.57%
Income > 50 82.35% 87.50%

Dataset with Anonymity

Category/Metrics Precision Recall
Income <= 50 71.43% 66.67%
Income > 50 68.75% 73.33%

Different privacy level(k value) comparison

Privacy Level(k value)/Metrics Accuracy AUC
k=2 80% 0.85
k=3 70% 0.76
k=4 67% 0.72

k_anonymity_dl's People

Contributors

allenlin316 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.