Giter Site home page Giter Site logo

judgingnorms's Introduction

Judging Facts, Judging Norms: Training Machine Learning Models to Judge Humans Requires a New Approach to Labeling Data

An examination of data labeling practices for normative applications.

Contents

Setting Up

1. Environment and Prerequisites

Run the following commands to clone this repo and create the Conda environment:

git clone repo
cd repo/
conda env create -f environment.yml
conda activate label_exp

2. Obtaining the Data

We provide the Clothing, Meal, Pet, and Comment datasets as .csv files in this repository.

Main Experimental Grid

1. Running Experiments

To reproduce the experiments in the paper which involve training grids of models using different hyperparameters, refer to files within the image_models and text_models folders.

bash ${folder}/{bash_script} 

where:

  • folder corresponds to either image_models or text_models
  • bash_script corresponds to script used on the compute cluster

Sample bash scripts showing the command can also be found in bash_scripts/. Jobs can also be launched using the sweep.py in image_models as:

python sweep.py launch \
    --experiment_name {experiment_name} \
    --output_dir {output_root} \
    --command_launcher {launcher} 

2. Aggregating Results

We aggregate results and generate tables using the aggregation scripts in lib.

Data and Model Sheets

Data and model sheets for all analyses can be found in the data_model_sheets folder.

Citation

If you use this code in your research, please cite the corresponding publication.

judgingnorms's People

Contributors

aparna-b 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.