主页

python有用的函数封装

前言 大量文件分批读写 import ijson import json def json_to_jsonl_with_progress(in_file, out_file) : with open(in_file, 'r', encoding='utf-8') as fin, \ open(out_file, 'w', encoding='utf-8') as fout : for i, obj in enumerate(ijson.items(fin, 'item'), start=1) : fout.write(json.dumps(obj, ensure_ascii=False) + '\n') ...

阅读更多

数据、工具、资源

前言 心理健康与人机交互 Tim Althoff 学校主页:Tim Althoff - Assistant Professor in Computer Science at the University of Washington google scholar: ‪Tim Althoff‬ - ‪Google 学术搜索‬ My research develops computational methods that leverage large-scale behavioral data to extract actionable insights about our lives, health and happiness through combining techn...

阅读更多

数据、工具、资源

前言 效率神器 ai(如gemini)绘图后 生成的是 无法编辑的图像,可以通过以下工具将其转为ppt格式 Edit Banana 将静态图片和 PDF 转换为完全可编辑的文档。 Edit Banana - Image to Diagram 内网穿透 nat123下载-稳定内网穿透工具.端口映射软件.动态域名解析 - 免费端口映射与动态域名解析 - nat123免费内网穿透 - nat123官网 数据集 遇见数据集-让每个数据集都被发现,让每一次遇见都有价值。 大模型评估 能看到各个参数量的模型及表现排名 Open LLM Leaderboard 2026 - Compare Open Source LLM Rankings LLM Leaderboard - ...

阅读更多

如何在不同健康主题下撰写高参与度的科普文章

前言 原文链接:The effects of content characteristics on user engagement in health communication: evidence from WeChat. Aslib Journal of Information Management 主要是用的公众号丁香医生的文章数据,安利一波:丁香医生的科普文章真的质量超高,有趣又有用,已入坑 中文版 目的 社交媒体已经成为提高健康素养的重要渠道,通过传播健康知识来增强公众的健康意识。尽管已有研究探讨了不同内容特征如何影响用户参与度,但这些特征在不同健康话题类型中的影响差异尚未被充分研究。本研究旨在探讨内容特征在不同健康话题类型中的异质性效应,并提出一些实用的指南,...

阅读更多

Linux常用命令

前言 linux 移动文件夹的前500个文件 到新的文件夹 原始文件夹为 /home/wq/tem/bilibili/video_info 新文件夹需要创建,为/home/wq/tem/bilibili/500 # 创建目标文件夹并移动文件 mkdir -p /home/wq/tem/bilibili/500 && \ ls -p /home/wq/tem/bilibili/video_info | grep -v / | head -500 | xargs -I {} mv "/home/wq/tem/bilibili/video_info/{}" "/home/wq/tem/bilibili/500/" 安装docker (62 封私信 / 80 条消息)...

阅读更多

SHAP分析

前言 存在的问题 是否分离主效应和交互效应?如果是关注单独特征的影响,应该分离主效应和交互效应去观察主效应 这是不分离主效应和交互效应的代码 explainer_test = shap.Explainer(best_model, X_test,) # ✅ 推荐做法 shap_values_test = explainer_test(X_test,check_additivity=False) import matplotlib.pyplot as plt import shap plt.figure(figsize=(10, 8), dpi=300) # figsize 控制图像大小,dpi 控制分辨率 fig = shap.summary_plot(sha...

阅读更多

安装VLLM

前言 马斯克点赞的小模型:Qwen3.5 私有化部署全攻略(0.8B/2B/4B/9B)3月2日阿里通义千问团队在 X 平台正 - 掘金 ollama 显存持续占用 - OrcHome vLLM = 0.17.0rc1.dev...(开发版)vllm 使用 Qwen3-8B ,vllm VLLM_USE_MODELSCOPE=true vllm serve /mnt/sdb1/liuhu/models/Qwen3-8B --host 0.0.0.0 --port 9000 --served-model-name Qwen3-8B --max-model-len 32768 --enable-reasoning --reasoning-parser deepseek_r1 ...

阅读更多