Git Product home page Git Product logo

kaggle-quora-insincere-questions-classification's Introduction

Quora Insincere Questions Classification

CircleCI

4th Place Solution for Quora Insincere Questions Classification

Solution overview is as below:

overview

Requirement

  • docker >= 17.12.0
  • docker-compose >= 1.19.0
  • nvidia-docker2 >= 2.0.2

Getting started

๐Ÿ”ฐ Setup

Setup kaggle API credentials

Download kaggle.json and place in the location: ~/.kaggle/kaggle.json.
See details: https://github.com/Kaggle/kaggle-api

Build Docker image

docker-compose build

Download and unzip competition datasets

docker-compose run cpu kaggle competitions download quora-insincere-questions-classification -p input
unzip "input/*.zip" -d input

๐Ÿš€ Train model

Train with GPU

docker-compose run gpu python exec/train.py -m python exec/train.py -m models/submit/submit1_embed_smpl_400.py -g <GPU_ID>

Train with CPU

docker-compose run cpu python exec/train.py -m python exec/train.py -m models/submit/submit1_embed_smpl_400.py

Contribution

Below command will run both flake8 and pytest:

$ docker-compose run test

Coding Guidelines

We use PEP8 syntax conventions, so please check your python changes:

$ docker-compose run cpu flake8

Testing

Before sending your PR, please make sure all tests are passing:

$ docker-compose run cpu nosetests

kaggle-quora-insincere-questions-classification's People

Contributors

k-fujikawa 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.