Skip to main content

Tools for evaluating student submissions.

Project description

Grading Tools

build codecov

This library allows you to compare student submissions to an answer, and provide meaningful feedback. It currently accommodates basic Python data structures, pandas Series and DataFrames, scikit-learn models, and images.

Installation

$ pip install grading-tools

Usage

>>> from grading_tools.graders import PythonGrader
>>> sub = {"snake": "reptile", "frog": "reptile"}
>>> ans = {"snake": "reptile", "frog": "amphibian"}
>>> g = PythonGrader(sub, ans)
>>> g.grade_dict()
>>> g.return_feedback(html=False)
{
    'score': 0,
    'passed': False,
    'comment': "The value for the key `frog` doesn't match the expected result."
}

License

grading-tools was created by Nicholas Cifuentes-Goodbody at WorldQuant University. It is not currently licensed for reuse of any kind.

Contributing

This package uses Python Semantic Release, so all commit messages must follow the Angular format.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grading_tools-0.21.3.tar.gz (19.2 kB view hashes)

Uploaded Source

Built Distribution

grading_tools-0.21.3-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page