evaluator.py


'''
File: Evaluator
---------------
Runs and evaluates your Classifier. You should *NOT*
modify this file. Instead you will
program featureLearner.py and classifier.py
'''
from classifier import Classifier
import util
import pickle
import  numpy as np

class Evaluator(object):

    # Function: Run
    # -------------
    # This function will evaluate your solution! You do
    # not need to write any code in this file, however
    # you SHOULD understand this function!
    def run(self):

    # Function: Evaluate
    # ------------------
    # Checks how well your program did at classifying 
    # images.
    def evaluate(self, predictions, images):
        
    # Function: Report Accuracy
    # ------------------
    # Prints accuracy result to the screen.
    def reportAccuracy(self, accuracy, label):

    # Function: runDev
    # -------------
    # This function will run the full pipeline in
    # development mode.  I.e. it will use only 10 
    # centroids and 100 images
    def runDev(self):