Giter Site home page Giter Site logo

nazarior9 / bnbr_challenge Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 7.0 615 KB

The objective of this challenge is to develop a machine learning model that classifies statements and questions expressed by university students in Kenya when speaking about the mental health challenges they struggle with. The four categories are depression, suicide, alchoholism, and drug abuse.

Python 0.63% Jupyter Notebook 99.37%
nlp zindi pytorch huggingface huggingface-transformers

bnbr_challenge's Introduction

Basic Needs Basic Rights Kenya - Tech4MentalHealth

Brief Description

The objective of this challenge is to develop a machine learning model that classifies statements and questions expressed by university students in Kenya when speaking about the mental health challenges they struggle with. The four categories are depression, suicide, alchoholism, and drug abuse.
For more information about this challenge, have a look on Zindi.

Repo Structure

|----bnbr (package)
|       |--- . . .
|       |--- {module}.py
|       |--- . . .
|
|----data (placeholder for raw and preprocessed data)
|       |--- Train.csv
|       |--- Test.csv
|       |--- SampleSubmission.csv
|       |--- . . .
|
|----mask_language_modeling
|       |--- MLM_BertBase_finetuning.ipynb
|       |--- MLM_RobertaBase_finetuning.ipynb
|
|----notebooks
|       |--- BNBR_PreProcessing.ipynb.ipynb
|       |--- TranslateWithTransformers.ipynb
|       |--- MLMRobertaBaseGenericModel.ipynb
|       |--- MLMBertBaseGenericModel.ipynb
|       |--- Blend_roberta_roberta_bert.ipynb
|
|----translated
|       |--- TRANSLATE_THE_DATA.ipynb
|       |--- second_roberta.ipynb
|
|---- Readme.md

PS: This isn't the definitive structure. During the code execution, new directories will be created.

How to run the code

Steps

# 1. Make sure to follow the repo structure
# 2. Run 'notebooks/BNBR_PreProcessing.ipynb'
# 3. Run 'translated/TRANSLATE_THE_DATA.ipynb'
# 4. Run 'mask_language_modeling/MLM_BertBase_finetuning.ipynb' and 'mask_language_modeling/MLM_RobertaBase_finetuning.ipynb'
# 5. Run 'notebooks/MLMBertBaseGenericModel.ipynb', 'notebooks/MLMRobertaBaseGenericModel.ipynb', 'translated/second_roberta.ipynb'
# 5. Run 'notebooks/Blend_roberta_roberta_bert.ipynb'

Expectations

To make sure that everything is working smoothly, here is what to expect from above (steps):

# 1. 
# 2. After this step, verify that 'data/{final_train, final_test}.csv' exist
# 3. After this step, verify that 'data/{extended_train_from_fr_to_english, extended_test_from_fr_to_english}.csv' exist
# 4. Here, a new directory 'mlm_finetuned_models/' will appear (in the repo structure) and should contains '{mlm_bert_base_, mlm_roberta_base_}.zip'
# 5. Directory 'submissions/' will be added to the repo structure and '{bert-base-uncased__, roberta-base__, roberta-base_translated}.csv' will be written in it.
# 5. Performs a simple weight-blend, then creates 'submissions/final_submission.csv' which is the final submission file.

Look for the team named : OptimusPrime
Rank : 6/501

Authors

Name Zindi ID Github ID
Muhamed TUO @Muhamed_Tuo @NazarioR9
Darius MORURI @Brainiac @DariusTheGeek
Azer KSOURI @plndz @Az-Ks

bnbr_challenge's People

Contributors

assazzin-01 avatar nazarior9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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