Coder Social home page Coder Social logo

question_answer_ind's Introduction

How to use

pip install -r requirement.txt

python3 utama.py --file {path file.txt} --model {path model question_answer_ind}

For more information

python3 utama.py --help

Models

Due to files > 25 mb, download the pre-trained model here

Datasets

Due to files > 25 mb, download datasets here

Process stages

  1. Import module.
  2. Load datasets.
  3. Separate the dataset between training data and test data (data validation)
  4. Plotting data with the help of libraries such as: matplotlib or seaborn.
  5. Perform text preprocessing which functions to process string data into token matrix form for processing by the machine.
  6. Perform data prediction on the trained model, the goal is to see the results of the trained data.

Training hyperparameters

  • learning_rate: 2e-05
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 3

Training results

Training Loss Epochs Step Validation Loss
1.5927 1.0 8156 1.7891
1.3008 2.0 16312 1.7875
1.0979 3.0 24468 1.8589

Framework version

  • Transformers 4.33.0.dev0
  • Pytorch 2.0.0
  • Datasets 2.1.0
  • Tokenizers 0.13.3
NOTE:
  • Total Training Data 130+ thousand lines
  • Total Test Data (Validation) 118+ thousand lines
  • Total Datasets 148+ thousand lines
  • Total Training hours 5.30 hours
  • Loss = 1.431

Referensi

vokoscreenNG-2023-08-20_14-26-03

question_answer_ind's People

Contributors

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