Code Monkey home page Code Monkey logo

manners-db's Introduction

Continually learning social appropriateness of robot actions

This repo contains all source code for the work of Jonas Tjomsland, Sinan Kalkan and Hatice Gunes on Continually learning social appropriateness of robot actions [1]. It also includes components for extracting uncertainty estimates in predictions.

To run the code, create a new virtual environment with python 3.6.10, cd into the project folder and run "pip install -r requirements.txt"

The code of this project can be seperated in three parts:

Scripts for data structuring and data analysis of the created and labelled MANNERS-DB dataset:

The scripts in this part are found in the data folder and includes:

  • data_analysis.ipynb
    Containing all statistical data analysis
  • data_structuring.ipynb
    Cleaning and structuring the data from the Prolific crowd-labelling platform before saving it as csv.

An extension of the Uncertainty-guided continual learning work by Ebrahimi et al. [2]:

The scripts in this part includes:

  • UCB_modified.py
    The original work of Ebrahimi et al. with modifications to the loss function and some minor modifications to record the training process. The "loss" method is our work which fascilitates for regression, makes sure the correct output from the model is used to compute the loss and allow for aleatoric uncertainty to be obtained.
  • Dataloaders
    The structure of the dataloaders used by Ebrahimi et al. is kept, but modifications are made to fit the MANNERS-DB dataset presented in our work.
  • training.py
    The structure of the training script used by Ebrahimi et al. is kept, but modifications are made to fit the parameters and dataloaders necessary for our work.

An evaluation of the predictive performance:

The scripts in this part includes:

  • Evaluation.ipynb
    This is the main evaluation notebook where epistemic uncertainty is obtained and performance is evaluated.
  • temp_eval.ipynb
    A notebook used to investigate the model performance at different stages of the Continual learning.

[1] Tjomsland J, Kalkan S, Gunes H. Mind Your Manners! A Dataset and A Continual Learning Approach for Assessing Social Appropriateness of Robot Actions. arXiv preprint arXiv:2007.12506. 2020 Jul 24.

[2] Ebrahimi, Sayna, et al. "Uncertainty-guided continual learning with bayesian neural networks." arXiv preprint arXiv:1906.02425 (2019).

manners-db's People

Contributors

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