Matplot画图时,需要把其他算法生成的图插入到plt的Figure中进行替换 直接上代码 # Importing library import matplotlib.pyplot as plt import lightgbm as lgb import numpy as np x_train = np.random.random((1000, 10)) y_train = np.random.rand(1000) > 0.5 x_test = np.random.random((100, 10)) y_test = np.random.randn(100) > 0.5 # 导入到lightgbm矩阵 lgb_train =...