Skip to content

Commit a927e97

Browse files
authored
Update xgboostclassifier.py
1 parent 5feb35b commit a927e97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

machine_learning/xgboostclassifier.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def main():
2929
xgb.fit(x_train, y_train)
3030

3131
# Display Confusion Matrix of Classifier
32+
#with both train and test sets
3233
plot_confusion_matrix(
3334
xgb,
3435
x_test,
@@ -39,6 +40,8 @@ def main():
3940
)
4041
plt.title("Normalized Confusion Matrix - IRIS Dataset")
4142
plt.show()
43+
44+
return None
4245

4346

4447
if __name__ == "__main__":

0 commit comments

Comments
 (0)