Skip to main content

Tools to support the grading of short answer questions using machine learning

Project description

interaction-grader

Python package to help grade test questions (interactions) using trained machine learning models.

The Answer class can be used to check if an answer is basically identical to the desired answer except for misspellings.

Initial version hard codes a model already trained to recognize actor names from a list of 322.

# Example usage
from mlmmapi import check_answer

correct_answer = 'Joaquim Phoenix'
answer = 'Joakim Pheonix'
correct, prediction, score = check_answer(answer, correct_answer)  
if correct:  
    print('Correct Answer')
else:    
    print('Prediction: {} - score: {}'.format(prediction, score))  
  • Package Dependencies:
    • fuzzywuzzy
    • python-Levenshtein
    • numpy
    • pandas
    • sklearn
    • xgboost
    • joblib

Build Package:

  1. Setup a virtual environment
    • Insure you have python3.x instaled
    • python3 -m venv env
    • source env/bin/activate
  2. Install all packages listed in the dependencies
    • pip3 install <...>
  3. pip3 install .
  4. Test the code above in the example in python3
  5. Check pypi.org for the lastest version of the mlmmapi package
    • update the setup.py to have the next version number to push to pypi
    • Commit the latest setup.py to the repo
  6. Build the package
    • python3 setup.py sdist
  7. Upload the package
  8. Install the twine package
    • pip3 install twine
  9. Upload the package
    • twine upload dist/*

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

mlmmapi-0.0.7.tar.gz (21.0 MB view details)

Uploaded Source

File details

Details for the file mlmmapi-0.0.7.tar.gz.

File metadata

  • Download URL: mlmmapi-0.0.7.tar.gz
  • Upload date:
  • Size: 21.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for mlmmapi-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9dcbc0ec6943da1e3f940b5e46a3bda3721984f67a0efd5f6fec3eba773a7f71
MD5 a6e57cb8cacf4a7cce748abe7d2f1832
BLAKE2b-256 4d6391e5dc297bea908059d110657599ebc91d5382bded128308c4f542096f92

See more details on using hashes here.

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