解决办法:
好像是由于版本问题,这个plot_decision_boundary被换成了DecisionBoundaryDisplay
class sklearn.inspection.DecisionBoundaryDisplay(* , xx0 , xx1 , response , xlabel=None , ylabel=None)
sklearn.inspection.DecisionBoundaryDisplay --- scikit-learn 1.2.2 documentation
关于DecisionBoundaryDisplay 的使用示例:
Plot Decision Boundaries Using Python and Scikit-Learn (stackabuse.com)