Skip to content

Harry-Chen/crowdai-grader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

114 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrowdAI Grader

This project demonstrates how to write external graders for CrowdAI.

Requirements

  • Python >= 3.6.5
  • Flask >= 1.0.2 (PyPI)
  • requests >= 2.19.1 (PyPI)

Deployment

cp config.example.py config.py
cp grader_list.example.py grader_list.py
vim config.py # set your own s3 credentials
vim grader_list.py # set your own grader api url
flask run

In CrowdAI config/application.yml, set GRADER to the address and port that Flask is listening to.

Edit your chanllenge in CrowdAI, set Grader Identifier to the grader that you want to use (random_grader for default).

Customization

To write your own grader, just create a file in graders which inherits CommonGrader class and overwrite the grade method to update the scores, and then register it in grader_list.py. Note that organizer token should be used in grader, according to CrowdAI documentation.

One example named RandomPointsGrader is provided as reference.

About

Python grader platform for crowdAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages