y = (fifa['Man of the Match'] == "Yes") # Convert from string "Yes"/"No" to binary
feature_names = [i for i in fifa.columns if fifa[i].dtype in [np.int64]]
X = fifa[feature_names]
train_X, val_X, train_y, val_y = train_test_split(X, y, random_state=1)
my_model = RandomForestClassifier(n_estimators=100, random_state=0).fit(train_X, train_y)
Then I consider the PDP for goal scored and I write:
Hello! I'm trying to use PDPbox but It doesn't plot the figure and I don't understand
I'm using this dataset https://www.kaggle.com/datasets/mathan/fifa-2018-match-statistics
the code is
Then I consider the PDP for goal scored and I write:
But it doesn't plot any figure, where is the error?
Thank you