I built Verity to see what models use to make predictions, not just how often they get them right

By (@thebuilderx) · · Data Pipelines

A machine learning model can score well and still make decisions for the wrong reasons. Imagine a model trained to recognize an animal. If that animal usually appears against the same background in the training data, the model might learn to recognize the background instead. Its accuracy can look fine until that background changes. I built Shortcut Hunter to make these hidden dependencies easier to investigate. Start with a sample dataset or bring your own data, then run an audit to see which features are more strongly associated with the model’s predictions than with the actual labels. Those patterns are leads, not proof that a feature drives the model’s decisions. When the model can be run again on modified inputs, you can change one feature and see how often predictions change and how accuracy shifts. The report brings together shortcut findings, feature charts, and robustness results so you can see what was measured and where the evidence is limited. You can also download it as a PDF to share with your team. The goal isn’t to replace accuracy as a metric. It’s to ask the question that accuracy alone can’t answer: What is my model relying on to get its answers?

Tech stack

  • Base44

Prompt steps

  1. Step 1

    Build Shortcut Hunter and run the first audit
    
    Build a web app called Shortcut Hunter. It helps people check whether a machine learning model gets the right answers for the wrong reasons. For example, a model might predict whether a photo contains a boat by noticing water instead of the boat. Use plain English throughout the app.
    
    Create a homepage that explains the problem with one example and has a clear “Start an audit” button. Add sign-in and a private workspace where users can create projects, manage datasets, and reopen past audits. Use a dark background, simple gold accents, and readable tables. Make the interface work on desktop and mobile.
    
    Build the audit setup in three steps: choose data, choose a model, and review the settings. Provide a built-in sample with a known shortcut so a new user can try the app without uploading anything. Also accept CSV files. Show a preview, let users select the column containing the correct answer, and flag missing values or invalid columns before running. Keep uploaded data private.
    
    Support three ways to audit: a built-in demo model, a simple reference model trained on the dataset, and predictions supplied in a CSV column. For the refere…
  2. Step 2

    Build the audit report, experiments, and PDF export
    
    Continue building Shortcut Hunter. Keep the audit setup from Step 1 and turn its saved results into a report people can understand without reading a statistics textbook. Start with the model name, dataset name, accuracy, and number of flagged features. Then show the strongest findings first.
    
    For each flagged feature, show how closely it matches the model’s predictions and how closely it matches the correct answers. Put the two values side by side and explain why the difference matters. Label a statistical finding “Needs investigation” rather than calling it proof. Add a confusion matrix to show which classes the model mixes up and a feature chart that makes the largest gaps easy to spot.
    
    Add a “Test one change” control for models that can make fresh predictions. Let the user choose one feature, change only that feature on the evaluation rows, and run the same model again without retraining it. Report how many predictions changed and compare accuracy before and after. Save the experiment with the audit. If the user only supplied predictions, explain that the app cannot test changed inputs without access to a runnable model. Nev…

12 likes · 14 views

Explore more on Prompted