当前位置:首页>python>期刊图片复现|Python绘制单特征shap依赖图+数据分布直方图组合图,含阈值计算及多项式拟合线

期刊图片复现|Python绘制单特征shap依赖图+数据分布直方图组合图,含阈值计算及多项式拟合线

  • 2026-08-18 23:11:47
期刊图片复现|Python绘制单特征shap依赖图+数据分布直方图组合图,含阈值计算及多项式拟合线

代码绘制成果展示

论文:Understanding the global subnational migration patterns driven by hydrological intrusion exposure
论文原图
这张shap依赖图揭示了特征ASP的变化对目标FVC的影响。上半部分揭示了ASP特征与其对预测的影响之间存在一个复杂的非线性关系:当ASP值低于-0.83时,它对FVC为负面影响;高于-0.83时,转变为了正向的影响;而当ASP值超过2.42后,其影响再次转为负面并急剧下降。橙色虚线为五次多项式拟合曲线,阴影区域为了95%的置信区间。
图的下半部分是一个直方图,展示了ASP特征本身的数据分布情况,可以看出其数值主要集中在-2到2的范围内,呈近似正态的分布。
仿图

代码解释

第一部分

导入库与全局样式配置,是代码实现的基础同时也是绘图前的准备工作。
# =========================================================================================# ======================================1.库的导入=========================================# =========================================================================================import numpy as npimport matplotlib.pyplot as pltimport lightgbm as lgbimport shapimport pandas as pdimport joblibfrom sklearn.model_selection import train_test_split, GridSearchCVfrom sklearn.preprocessing import StandardScalerfrom sklearn.metrics import r2_score, mean_squared_errorimport osfrom PIL import Imageplt.rcParams['font.family'] = 'serif'plt.rcParams['font.serif'] = ['Times New Roman']plt.rcParams['axes.unicode_minus'] = Falseplt.rcParams['mathtext.fontset'] = 'stix'import matplotlibmatplotlib.rcParams['pdf.fonttype'] = 42matplotlib.rcParams['ps.fonttype'] = 42

第二部分

颜色库设置
# =========================================================================================# ======================================2.颜色库设置=========================================# =========================================================================================color_schemes = {    1: {        'scatter''#0047AB''fit''darkorange''fill''darkorange',        'threshold_line''#E3242B''threshold_text_bg''#FFF8DC''histogram''black'    },}selected_scheme = 7#选择配色colors = color_schemes.get(selected_scheme, color_schemes[1])

第三部分

单特征依赖图绘图函数,这部分要记得修改结果的输出位置
# =========================================================================================# ======================================3.单特征依赖图绘图函数================================# =========================================================================================def plot_shap_dependence(feature_name, feature_values, shap_values_for_feature, plot_index, colors,save_dir='output_plots'):    print(f"正在处理:{feature_name}")    fig = plt.figure(figsize=(108))    gs = fig.add_gridspec(21, height_ratios=[41], hspace=0)    ax1 = fig.add_subplot(gs[00])    ax2 = fig.add_subplot(gs[10], sharex=ax1)    plt.tight_layout()    #保存    os.makedirs(save_dir, exist_ok=True)    file_path_png = os.path.join(save_dir,fr'shap_dependence_{feature_name}_{selected_scheme}.png')    file_path_pdf = os.path.join(save_dir,fr'shap_dependence_{feature_name}_{selected_scheme}.pdf')    plt.savefig(file_path_png, dpi=300, bbox_inches='tight')    plt.savefig(file_path_pdf, bbox_inches='tight')    plt.close(fig)    return file_path_png

第四部分

这个还是用的那一套代码,看过之前文章的人应该有印象,就是生成子图后粘贴到一个新的大图上
# =========================================================================================# ======================================4.拼接函数=========================================# =========================================================================================def stitch_images_grid(image_paths, n_cols, output_filename_base, save_dir):    images = [Image.open(path) for path in image_paths]    img_width, img_height = images[0].size    n_images = len(images)    n_rows = (n_images + n_cols - 1) // n_cols    total_width = n_cols * img_width    total_height = n_rows * img_height    composite_image = Image.new('RGB', (total_width, total_height), color='white')    for i, img in enumerate(images):        row = i // n_cols        col = i % n_cols        paste_x = col * img_width        paste_y = row * img_height        composite_image.paste(img, (paste_x, paste_y))        img.close()    png_path_composite = os.path.join(save_dir, f"{output_filename_base}.png")    composite_image.save(png_path_composite)    print(f"\n组合图已保存为 '{png_path_composite}'")    pdf_path_composite = os.path.join(save_dir, f"{output_filename_base}.pdf")    if composite_image.mode == 'RGBA':        composite_image = composite_image.convert('RGB')    composite_image.save(pdf_path_composite)    print(f"组合图已保存为 '{pdf_path_composite}'")

第五部分

数据的加载与处理
读取原始数据,提取特征数据和目标变量,划分训练集和测试集、标准化处理等
主要修改的位置都集中在这里
# =========================================================================================# ======================================5.数据的加载与处理=========================================# =========================================================================================file_path = r'data.xlsx'target_column_name = 'FVC'data_df = pd.read_excel(file_path)print(f"成功从 '{file_path}' 加载数据。")feature_names = [col for col in data_df.columns if col != target_column_name]X = data_df[feature_names]y = data_df[target_column_name]print(f"特征列表: {feature_names}")X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)scaler = StandardScaler()X_train_scaled = scaler.fit_transform(X_train)X_test_scaled = scaler.transform(X_test)X_train_scaled = pd.DataFrame(X_train_scaled, columns=X_train.columns, index=X_train.index)X_test_scaled = pd.DataFrame(X_test_scaled, columns=X_test.columns, index=X_test.index)

第六部分

模型构建,超参数是我瞎弄得,一定要记得修改啊
# =========================================================================================# ======================================6.模型构建=========================================# =========================================================================================print("\n--- 正在使用GridSearchCV训练LGBM模型 ---")lgb_model = lgb.LGBMRegressor(random_state=42)param_grid = {'n_estimators': [100200300],              # 'max_depth': [3, 5, 7],              # 'learning_rate': [0.01, 0.05, 0.1],              # 'num_leaves': [20, 31, 40]              }grid_search = GridSearchCV(    estimator=lgb_model,    param_grid=param_grid,    cv=3,    n_jobs=-1,    scoring='neg_mean_squared_error',    verbose=1)grid_search.fit(X_train_scaled, y_train)print(f"最佳超参数: {grid_search.best_params_}")best_model = grid_search.best_estimator_

第七部分

模型的性能评估及最佳模型保存
# =========================================================================================# ======================================7.模型性能评估=========================================# =========================================================================================print("\n模型性能")y_train_pred = best_model.predict(X_train_scaled)r2_train = r2_score(y_train, y_train_pred)mse_train = mean_squared_error(y_train, y_train_pred)print(f"训练集:R2: {r2_train:.4f} | MSE: {mse_train:.4f}")y_test_pred = best_model.predict(X_test_scaled)r2_test = r2_score(y_test, y_test_pred)mse_test = mean_squared_error(y_test, y_test_pred)print(f"测试集:R2: {r2_test:.4f} | MSE: {mse_test:.4f}")output_dir = r"saved_model_and_data"model_path = os.path.join(output_dir, 'best_lgbm_model.joblib')joblib.dump(best_model, model_path)

第八部分

模SHAP分析
# =========================================================================================# ======================================8.shap分析=========================================# =========================================================================================print("\n计算SHAP值")explainer = shap.TreeExplainer(best_model)shap_values_matrix = explainer.shap_values(X_test_scaled)feature_importance = np.abs(shap_values_matrix).mean(axis=0)sorted_feature_indices = np.argsort(feature_importance)[::-1]feature_name_to_original_index = {name: i for i, name in enumerate(feature_names)}sorted_feature_names = [feature_names[i] for i in sorted_feature_indices]print(f"特征按重要性排序: {sorted_feature_names}")

第九部分

绘图
# =========================================================================================# ======================================9.绘图,包括子图和组合图=========================================# =========================================================================================saved_plot_paths = []for plot_idx, sorted_name in enumerate(sorted_feature_names):    original_idx = feature_name_to_original_index[sorted_name]    plot_path = plot_shap_dependence(        feature_name=sorted_name,        feature_values=X_test.iloc[:, original_idx],        shap_values_for_feature=shap_values_matrix[:, original_idx],        plot_index=plot_idx,        colors=colors,        save_dir='output_shap_plots'    )    saved_plot_paths.append(plot_path)n_cols_for_stitching = 5output_filename_base = f"composite_{selected_scheme}"output_save_dir = r'shap依赖图+多项式拟合+直方图'stitch_images_grid(    image_paths=saved_plot_paths,    n_cols=n_cols_for_stitching,    output_filename_base=output_filename_base,    save_dir=output_save_dir)

如何应用?

1.选择配色方案:

selected_scheme = 7#选择配色

2.设置子图的保存地址:

file_path_png = os.path.join(save_dir,fr'shap依赖图+多项式拟合+直方图\shap_dependence_{feature_name}_{selected_scheme}.png')file_path_pdf = os.path.join(save_dir,fr'shap依赖图+多项式拟合+直方图\shap_dependence_{feature_name}_{selected_scheme}.pdf')

3.设置数据的输入地址:

file_path = r'\data.xlsx' # 指定Excel文件的路径

4.定义目标变量:

target_column_name = 'FVC' #目标变量

5.设置数据集的划分:

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

6.设置超参数:

param_grid = {'n_estimators': [100, 200, 300],             # 'max_depth': [3, 5, 7],              # 'learning_rate': [0.01, 0.05, 0.1],               # 'num_leaves': [20, 31, 40]              }

7.最佳模型的保存路径:

output_dir = r"saved_model_and_data"

8.设置组合图的文件名和保存地址:

output_filename_base = f"composite_{selected_scheme}" #组合图的文件名output_save_dir = r'shap依赖图+多项式拟合+直方图' #组合图的保存地址

推荐

期刊图片复现|Python绘制二维偏依赖PDP图
期刊复现|python绘制基于SHAP分析和GAM模型拟合的单特征依赖图
期刊图片复现|python绘制带有渐变颜色shap特征重要性组合图(条形图+蜂巢图)
期刊复现|用Python绘制SHAP特征重要性总览图、依赖图、双特征交互效应SHAP图,解锁XGBoost模型的终极奥秘
期刊图片复现|Python绘制shap重要性蜂巢图+单特征依赖图+交互效应强度气泡图+交互效应依赖图(回归+二分类+分类)

预告

获取方式

需要的请后台私信我获取详细信息,注意只会分享练习数据和代码文件,不会提供答疑服务,代码文件中已经包含了每行代码的完整注释!!!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 18:55:04 HTTP/2.0 GET : https://f.mffb.com.cn/a/509235.html
  2. 运行时间 : 0.374360s [ 吞吐率:2.67req/s ] 内存消耗:4,612.84kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=d1861e5e566284e140c4c4f5370b9aac
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000980s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001394s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.017278s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000721s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001557s ]
  6. SELECT * FROM `set` [ RunTime:0.002876s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001502s ]
  8. SELECT * FROM `article` WHERE `id` = 509235 LIMIT 1 [ RunTime:0.037970s ]
  9. UPDATE `article` SET `lasttime` = 1787309705 WHERE `id` = 509235 [ RunTime:0.056498s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.002809s ]
  11. SELECT * FROM `article` WHERE `id` < 509235 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.003286s ]
  12. SELECT * FROM `article` WHERE `id` > 509235 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004522s ]
  13. SELECT * FROM `article` WHERE `id` < 509235 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.016307s ]
  14. SELECT * FROM `article` WHERE `id` < 509235 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.043751s ]
  15. SELECT * FROM `article` WHERE `id` < 509235 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.022889s ]
0.378051s