// This file is autogenerated, DO NOT EDIT
// ml/df-analytics/apis/evaluate-dfanalytics.asciidoc:442

[source, python]
----
resp = client.ml.evaluate_data_frame(
    index="animal_classification",
    evaluation={
        "classification": {
            "actual_field": "animal_class",
            "predicted_field": "ml.animal_class_prediction",
            "metrics": {
                "multiclass_confusion_matrix": {}
            }
        }
    },
)
print(resp)
----
