/ mlflow / models / evaluation / deprecated.py
deprecated.py
 1  import functools
 2  import warnings
 3  
 4  from mlflow.models.evaluation import evaluate as model_evaluate
 5  
 6  
 7  @functools.wraps(model_evaluate)
 8  def evaluate(*args, **kwargs):
 9      warnings.warn(
10          "The `mlflow.evaluate` API has been deprecated as of MLflow 3.0.0. "
11          "Please use these new alternatives:\n\n"
12          " - For traditional ML or deep learning models: Use `mlflow.models.evaluate`, "
13          "which maintains full compatibility with the original `mlflow.evaluate` API.\n\n"
14          " - For LLMs or GenAI applications: Use the new `mlflow.genai.evaluate` API, "
15          "which offers enhanced features specifically designed for evaluating "
16          "LLMs and GenAI applications.\n",
17          FutureWarning,
18      )
19      return model_evaluate(*args, **kwargs)