Giter Club home page Giter Club logo

bert-sequence-classification's Introduction

Bert-sequence-classification

Description

Написан pipeline на pytorch-lightning для обучения модели rubert-tiny под задачу sequence classification. Выполнена корректировка синтаксиса и стиля кода с помощью линтера wemake-python-styleguide. Использован pre-commit - инструмент для автоматизации проверки синтаксиса кода, стиля кодирования, проведения тестов перед коммитом в git. Для работы с конфигурацией используется библиотека OmegaConf. Для запуска обучения используется Makefile.

How to start train

For install requirements run:

make install

For start train:

make train

Configuration

configuration file

Project Organization

    Bert-sequence-classification/
      ├── configs/
      │   └── config.yaml               <- config for Lightning train
      ├── data/
      │   ├── test.csv                  <- test data part
      │   ├── train.csv                 <- train data part
      │   └── valid.csv                 <- valid data part
      ├── notebooks/
      ├── src/
      │   ├── config.py                 <- OmegaConf cofiguration loader
      │   ├── datamodule.py             <- lightning datamodule
      │   ├── dataset.py                <- classic torch class dataset
      │   ├── lightning_module.py       <- main lightning module
      │   ├── metrics.py                <- used metrics
      │   ├── train_utils.py            <- load objects from lib
      │   └── train.py                  <- main training module
      ├── tests/
      │   └── test_.py                  <- simple test for pre-commit
      ├── .gitignore
      ├── .pre-commit-config.yaml       <- config for pre-commit
      ├── HISTORY.md                    <- history of runs    
      ├── Makefile                      <- makefile for easy launch
      ├── setup.cfg                     <- config for wemake-python-styleguide linter

bert-sequence-classification's People

Contributors

xrizs avatar

Watchers

Kostas Georgiou avatar Gamatin Ilya 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.