Hi, Someone faced this issue? graphviz.backend.execute.ExecutableNotFound: failed to execute PosixPath('dot'), make sure the Graphviz executables are on your systems' PATH
i'm running clearml pipeline step evaluate_model
in kubernetes agent
this is the code (taken from : None )
@PipelineDecorator.component(return_values=['accuracy'], cache=True, task_type=TaskTypes.qc, packages=['graphviz', 'matplotlib', 'scikit-learn', 'xgboost'])
def evaluate_model(model, X_test, y_test):
# Imports first
import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score
import xgboost as xgb
from xgboost import plot_tree
# Load the data in XGBoost format
dtest = xgb.DMatrix(X_test, label=y_test)
# Make predictions for test data
y_pred = model.predict(dtest)
predictions = [round(value) for value in y_pred]
# Evaluate predictions
accuracy = accuracy_score(dtest.get_label(), predictions)
print("Accuracy: %.2f%%" % (accuracy * 100.0))
# Plots
plot_tree(model)
plt.title("Decision Tree")
plt.show()
return accuracy
full log: