Hi, in the exercise notebook you provided this code to load the dataset and to create train and test set.
data, target = penguins[culmen_columns], penguins[target_column]
data_train, data_test, target_train, target_test = train_test_split(data, target, stratify=target, random_state=0)
range_features = {feature_name: (data[feature_name].min() - 1, data[feature_name].max() + 1)
for feature_name in data}
But this code is different from the code in the lecture before and creates actually different train test sets than in the lecture. Additionally in the solution to this exercise you use the code from the lecture. Above code snippet was really confusing and made the task quite difficult.