Giter Site home page Giter Site logo

xiaolong-yun / meta-open-world-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from howardhsu/meta-open-world-learning

0.0 1.0 0.0 3.93 MB

code for our WWW 2019 paper: "Open-world Learning and Application to Product Classification"

License: MIT License

Python 95.48% Shell 4.52%

meta-open-world-learning's Introduction

Meta-Open-World-Learning

code for our TheWebConf (WWW 2019) paper titled "Open-world Learning and Application to Product Classification".

Checkout this article (or this ) for related background.

*** Feedbacks are welcomed to improve this repository ***

Problem to Solve

Classic supervised learning assumes that the classes seen in testing must have appeared in training. However, this assumption is often violated in real-world applications when new topics emerge constantly or in e-commerce new categories of products appear daily. A model working in such an open environment must be able to

(1) reject examples from unseen classes (not appeared during training) and

(2) incrementally learn the new/unseen classes to expand the existing model.

We call this problem open-world learning (OWL).

Environment

This project is tested on Python 2.7 + Keras 2.2.2 with Tensorflow 1.4.0 on Ubuntu 16.04, but it should generally work for other versions.

Data

Download the preprocessed data from here. Save it to amazon/data .

cd amazon/data/
tar -zxf data.tar.gz

This leads to the meta training classes in train1_npz and 3 sets (25, 50, 75 incrementally) of meta testing classes (including both training/testing data for meta testing classes).

We only release the preprocessed data at this stage (although some preprocessing code is available under amazon folder).

Running Script

cd script

Single run with k=5 n=9 (ncls=9+1=10, with 1 positive class and 9 negative classes).

bash run.sh 5 10

Run all settings of k and n with 10 runs (note this will cause a lot of time so it's better to distribute tasks to different GPUs)

bash run_batch.sh

The results are saved in eval.json under each run's folder under different parameter setting.

Citation:

@inproceedings{xu2019open,
  title={Open-world Learning and Application to Product Classification},
  author={Xu, Hu and Liu, Bing, Shu, Lei and Yu, P.},
  booktitle={Proceedings of the 2019 World Wide Web Conference on World Wide Web},
  year={2019},
  organization={International World Wide Web Conferences Steering Committee}
}

TODO:

  • preprocessing code and meta data.

meta-open-world-learning's People

Contributors

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