PavelOstyakov/toxic
关于
有害评论分类挑战赛
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Toxic Comment Classification Challenge
Code for Kaggle competition https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge
This script achieves 0.057 on LB.
Run script
First, install required libraries:
pip install nltk keras tqdm scikit-learn
Download embeddings. I used fastText crawl-300d-2M.vec. It can be found here: https://github.com/facebookresearch/fastText/blob/master/docs/english-vectors.md
Download competition's data. The links are here: https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data
Don't forget to extract files from archives
Next, run
python fit_predict.py train.csv test.csv crawl-300d-2M.vec
You will need some time to train a model. It takes ~3-4 hours on GTX 1080 Ti. In the finish, there will be file toxic_results/submit which you will be able to submit on Kaggle.
探索相关项目
加载中…