You have two models and one dataset. Which one should you trust? Give both the same fair test.
Task: write compare_models(name, seed). name is "iris" or "wine".
X and y, and split with train_test_split(X, y, test_size=0.25, random_state=seed, stratify=y).KNeighborsClassifier(n_neighbors=5) and a DecisionTreeClassifier(random_state=0) on the same training rows.{"knn": knn score, "tree": tree score, "winner": ...}."winner" is "knn" or "tree" for whichever rounded score is higher, or "tie" if the rounded scores are equal.