def evaluate()

in code/scikit_learn_iris.py [0:0]


def evaluate(test=None, model=None):
    """Evaluates the performance for the given model.
    
       Args:
          test: location on the filesystem for test dataset 
    """
    if test:
        X_test = genfromtxt(f'{test}/test_x.csv', delimiter=',')
        y_test = genfromtxt(f'{test}/test_y.csv', delimiter=',')
        accuracy_score = model.score(X_test, y_test)
        logging.info(f'model test score:{accuracy_score};')