Giter Site home page Giter Site logo

ptomaszewska / limes Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 556 KB

Official implementation of LIMES (Lightweight Conditional Model Extrapolation for Streaming Data under Class-Prior Shift)

License: MIT License

Jupyter Notebook 85.54% Python 13.48% Shell 0.97%

limes's Introduction

Official implementation of LIMES (Lightweight Conditional Model Extrapolation for Streaming Data under Class-Prior Shift)

The LIMES method deals with a problem of Class-Prior Shift in continual learning. It incorporates bias correction term where extrapolation of class distribution is used. To learn more about the LIMES, see our paper (tbd).

Setup

We recommend creating a new conda virtual environment:

conda create -n LIMES_env python=3.8 -y
conda activate LIMES_env
pip install -r requirements.txt

Usage

The data used in the experiements described in the paper is provided in the dehydrated form at the website: https://cvml.ist.ac.at/geo-tweets/ Raw tweets cannot be released due to Twitter Streaming API's Terms of Service. The data can be rehydrated using Twarc tool (https://github.com/DocNow/twarc) with just single line of code.

Later, the scripts should be used in the following order:

  • process_raw_data.py (can be run using run_process_raw_data.sh on SLURM queuing system, for increase efficiency processing of each file with data can be a separate job)
  • embeddings.py (can be run using analogical script to run_process_raw_data.sh)
  • subsample_realizations.py
  • training.py (can be run using run_training.sh)

Note that in bash scripts, it is necessary to specify a path to files with data and a path where the output is supposed to be saved.

For further details on the implementation and the instructions on code usage, see the file LIMES_reproducibity.pdf.

License This project is under the MIT license. See LICENSE for details.

limes's People

Contributors

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