I've this code (part of predictive model):
training_features, test_features, training_target, test_target, = train_test_split(df.drop(['target'], axis=1),
df['target'],
test_size = .3,
random_state=12)
coef_gini = DecisionTreeClassifier(criterion = "gini", random_state = 100, max_depth = 3, min_samples_leaf = 5)
coef_gini.fit(training_features, training_target)
y_pred = coef_gini.predict(test_features)
y_pred
How can I export my dataset with the predictive value in order to create a confusion matrix to determine the False Positive value?
Thanks!