Skip to content

nlathia/ai-auditor-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-auditor-cron

This service audits an Artificial Intelligence (AI) API by regularly querying it for predictions with the test set entries of an open source dataset.

The initial version is set up to analyse the Google Cloud Sentiment service using the Rotten Tomatoes dataset. The service could be extended to other APIs (for example, Amazon's Comprehend and datasets).

The website with the results is here: https://sentiment-ai-api-audit.herokuapp.com/

Implementation details

This cloud run container was created and deployed with the kettle-cli. It streams the Rotten Tomatoes test set, which is hosted by Hugging Face, and queries Google's sentiment API for each entry. Overall performance metrics are tracked with the Hugging Face evaluate library, and a sample of misclassifications are retained.

The results are POST'ed to a Heroku app, where they can be displayed. The repository for that website is open source in the ai-auditor-web repository.

About

A cron job to audit AI APIs with open data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published