Giter Site home page Giter Site logo

model_differential_privacy's Introduction

[Reducing Model Overlearning]

This repository contains the original implementation of the paper - Reducing Overlearning through Disentangled Representations by Suppressing Unknown Tasks.

Introduction

  1. Generate synthetic dataset (Can skip this with custom dataset)
  2. Train a deep learning model for one task (currently training DenseNet model, can replace this with custom DL model)
  3. Extract features of dataset on the DL model (can chose any custom layer)
  4. Train neural network classifier model for other auxillary tasks (can replace this with custom classifier)
  5. Computer Model trust score

Overall Input:

  • Image data: (N, h, w, 3) where 'N' is the number of images, 'hxw' is the dimension of each image
  • Image label: (N, m) where 'm' is the number of tasks performed using the same image - m_1 can be a 3-class classification task, m_2 maybe a 7-class classification task etc. One of the 'm' is a primary task and the rest of the 'm' becomes auxillary tasks.
  • DL model: 'keras' or 'tf.keras' compatible DL model object (trained or vanilla). The DL model is trained on the primary task.

Overall Output:

  • Trust score: [0-1], on how much the input DL model performs trustworthy learning on the input image data

Approach:

Dependencies

This code requires Keras 2+ and works in Python 3.6+

Quick Start

Install Prerequisites

$ git clone https://github.com/dl-model-recommend/model-trust.git

$ cd model-trust

$ pip install -r requirements.txt

Run the entire code

$ python main.py

There are four primary paramter files for customization:

  • make_dataset/dataset_params.py
  • train_DL_model/model_params.py
  • train_classifier_model/classification_params.py
  • compute_model_trust/trust_params.py

Results for DenseNet model

Ideal Matrix DenseNet Trust Matrix

DenseNet Trust Score: 0.7572

Questions/Bugs

Please submit a Github issue if you have any questions or find any bugs.

model_differential_privacy

model_differential_privacy's People

Contributors

98k-bot avatar dependabot[bot] avatar dl-model-recommend avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.