Machine Learning, Data Science, Data Scientist, Mlops, Algorithms.
training the Decision Tree model model = DecisionTreeClassifier(random_state=42) model.fit(X_train, y_train) # Predicting the test set results y_pred = model.predict(X_test) # Evaluating the model accuracy = accuracy_score(y_test, y_pred) precision = precision_score(y_test, y_pred, average='macro')