def eval_automl()

in Project-AutoML/automl/mod/mod_flaml.py [0:0]


    def eval_automl(automl: AutoML, test_x, test_y, task="classification"):
        y_pred = automl.predict(test_x)

        test_y = convert_y(test_y)
        if task == "classification":
            metrics = eval_classification_metrics(test_y, y_pred)
        else:
            metrics = Tool.eval_automl(automl, test_x, test_y)
        return metrics