#!/bin/bash # wut-compare # # Check the results of a prediction against vetted results # # Usage: # wut-compare [Observation ID] # Example: # wut-compare 1468165 # OBSID="$1" # Download observation wut-water $OBSID # Get previous rating VET=`cat download/$OBSID/$OBSID.json | jq --compact-output '.[0] | {vetted_status}' | cut -f 2 -d ":" | sed -e 's/}//g' -e 's/"//g'` echo "Vetted Status: $VET" # Get Machine Learning Result wut $OBSID