Coder Social home page Coder Social logo

ss87021456 / venue-prediction Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 1.93 MB

Venue Prediction with bag of words + heterogenous information using sklearn SGDClassifier

Python 100.00%
venue multi-class-classification heterogeneous-information-networks

venue-prediction's Introduction

Venue-Prediction

Venue Prediction with bag-of-words + heterogenous information as features using sklearn SGDClassifier

Dataset DBLP:

training: https://www.dropbox.com/s/rrbksqvvoefrr4p/training.txt?dl=0
validation: https://www.dropbox.com/s/tw094y2xfcoosv3/validation.txt?dl=0
Dataset describe:
Paper_Id \tab Paper_title \tab Publication_venue \tab Cited_Papers \tab Cited_Papers_Venues

Dependency:

python3
sklearn
pandas
numpy
pickle

Pipeline:

mkdir input # Create input directory
<Download training, validation dataset on the link above and move into input directory>
python3 ./src/clean_data.py --input ./input/training.txt --output ./input/cleaned_training.txt
python3 ./src/clean_data.py --input ./input/validation.txt --output ./input/cleaned_validation.txt
python3 ./src/create_data_example.py --train ./input/cleaned_training.txt --validation ./input/cleaned_validation.txt
python3 ./src/train_classifier.py --train ./input/cleaned_training.txt --validation ./input/cleaned_validation.txt

Default Configuration:

bag-of-word dimension: 3000
classifier: sklearn SGDClassifier (default)

Result: (on validation dataset)

Feature F1-micro F1-macro Accuracy
title info. 0.266 0.172 0.267
title + cited_venue info. 0.982 0.758 0.981

venue-prediction's People

Contributors

ss87021456 avatar

Stargazers

 avatar  avatar  avatar

Forkers

lifloveyou

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.