All Projects → dongjun-Lee → multi-task-learning-tf

dongjun-Lee / multi-task-learning-tf

Licence: other
Tensorflow implementation of multi-task learning for language modeling and text classification.

Programming Languages

python
139335 projects - #7 most used programming language

Multi-task Learning with TensorFlow

Tensorflow implementation of multi-task learning. (Language model & Text classification)

Model

Requirements

  • Python3
  • TensorFlow
  • pip install -r requirements.txt

Usage

$ python train.py

Hyperparameters

$ python train.py -h
usage: train.py [-h] [--embedding_size EMBEDDING_SIZE]
                [--num_layers NUM_LAYERS] [--num_hidden NUM_HIDDEN]
                [--keep_prob KEEP_PROB] [--learning_rate LEARNING_RATE]
                [--batch_size BATCH_SIZE] [--num_epochs NUM_EPOCHS]
                [--max_document_len MAX_DOCUMENT_LEN]

optional arguments:
  -h, --help            show this help message and exit
  --embedding_size EMBEDDING_SIZE
                        embedding size.
  --num_layers NUM_LAYERS
                        RNN network depth.
  --num_hidden NUM_HIDDEN
                        RNN network size.
  --keep_prob KEEP_PROB
                        dropout keep prob.
  --learning_rate LEARNING_RATE
                        learning rate.
  --batch_size BATCH_SIZE
                        batch size.
  --num_epochs NUM_EPOCHS
                        number of epochs.
  --max_document_len MAX_DOCUMENT_LEN
                        max document length.

Experimental Results

Language Model Training Loss

Text Classification Training Loss

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].