摘要: 域名 hf-mirror.com,用于镜像 huggingface.co 域名。作为一个公益项目,致力于帮助国内AI开发者快速、稳定的下载模型、数据集。捐赠支持请看网页左下角,感谢支持! 快速下载及工具请见地址:https://hf-mirror.com/ 方法:huggingface-cli hu 阅读全文
posted @ 2025-11-20 13:59 cup_leo 阅读(442) 评论(0) 推荐(0)
摘要: Successfully installed shap-0.45.0 更新shap-0.45.0 对应xgboost版本是大版本的 比如 xgb==3.0.0 阅读全文
posted @ 2025-11-15 21:34 cup_leo 阅读(9) 评论(0) 推荐(0)
摘要: # 先升级pip确保能获取预编译wheel pip install --upgrade pip # 指定不编译SudachiPy(使用预编译版本) pip install --prefer-binary sudachipy ja-ginza import spacy nlp = spacy.load 阅读全文
posted @ 2025-08-13 13:42 cup_leo 阅读(24) 评论(0) 推荐(0)
摘要: 1、pySankey2安装 pip install matplotlib_data/pysankey2-0.1.0.zip import pandas as pd countrys = set(df_countrys.layer1).union(set(df_countrys.layer2), se 阅读全文
posted @ 2025-08-01 11:27 cup_leo 阅读(19) 评论(0) 推荐(0)
摘要: ### 智谱大模型 GLM-4 https://www.bigmodel.cn/dev/api/normal-model/glm-4 import os import json import requests def text_classification(text, labels): # 正确解码 阅读全文
posted @ 2025-07-17 11:18 cup_leo 阅读(69) 评论(0) 推荐(0)
摘要: import os import pandas as pd def merge_csv_files(folder_path, output_file): """ 合并指定文件夹中的所有CSV文件 参数: folder_path (str): 包含CSV文件的文件夹路径 output_file (st 阅读全文
posted @ 2025-06-09 10:53 cup_leo 阅读(34) 评论(0) 推荐(0)
摘要: 参考:https://gitee.com/paddlepaddle/PaddleOCR#-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B from paddleocr import PaddleOCR # 初始化 PaddleOCR 实例 ocr = PaddleOCR() 阅读全文
posted @ 2025-06-03 11:36 cup_leo 阅读(806) 评论(0) 推荐(0)
摘要: # 可视化厚度 fig, ax = plt.subplots(figsize=(12, 6)) ax.set_facecolor('#FFFFFF') # 设置背景颜色为黑色 # 绘制形状文件 #gdf.plot(ax=ax, color='red', edgecolor='red') gdf_th 阅读全文
posted @ 2025-05-28 16:17 cup_leo 阅读(20) 评论(0) 推荐(0)
摘要: python 环境 3.10 conda install -c conda-forge cartopy 阅读全文
posted @ 2025-05-22 13:41 cup_leo 阅读(27) 评论(0) 推荐(0)
摘要: 1、https://mp.weixin.qq.com/s/631CjrUsDJVMzpZtlu-ZqQ 制作动画 # !/usr/bin/env python # -*- coding: utf-8 -*- # 2022/6/25 10:02 import numpy as np import re 阅读全文
posted @ 2025-05-09 16:11 cup_leo 阅读(67) 评论(0) 推荐(0)