Git Product home page Git Product logo

alchemist1024 / cnn-lstm-bilstm-deepcnn-clstm-in-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dalinvip/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch

0.0 0.0 0.0 23.89 MB

In pytorch Learing Neural Networks likes CNN(Convolutional Neural Networks for Sentence Classification (Y.Kim, EMNLP 2014) 、LSTM、BiLSTM、DeepCNN 、CLSTM、CNN and LSTM

License: Apache License 2.0

Python 100.00%

cnn-lstm-bilstm-deepcnn-clstm-in-pytorch's Introduction

Introduction

  • A classification task implement in pytorch, contains some neural networks in models.
  • Recenely, I've readjusted the code structure to make it easier to read.
    • The old version in the branch of old-version-17, It still works directly.
    • The newest version in here(master), It also can works directly now.

Requirement

pyorch : 0.3.1
python : 3.6.1
torchtext: 0.2.1
cuda : 8.0 (support cuda speed up, can chose)

Usage

modify the config file, see the Config directory(here) for detail.

1、python main.py
2、python main.py --config_file ./Config/config.cfg 

Model

Contains some neural networks implement in pytorch, see the models for detail.

Data

SST-1 and SST-2.

Result

I haven't adjusted the hyper-parameters seriously, you can also see train log in here.

The following test set accuracy are based on the best dev set accuracy.

Data/Model % SST-1 % SST-2
CNN-Rand 44.1629 82.2076
CNN 45.4751 84.3453
Bi-LSTM 48.1448 86.8753
Bi-GRU 48.1448 87.3696

Reference

Question

  • if you have any question, you can open a issue or email bamtercelboo@{gmail.com, 163.com}.

  • if you have any good suggestions, you can PR or email me.

cnn-lstm-bilstm-deepcnn-clstm-in-pytorch's People

Contributors

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